Skip to content

chore(build): Xcode 加 Bundle Embedded PostgreSQL 构建阶段——本地构建产物直接带嵌入式 PG - #228

Merged
KerroKapple merged 1 commit into
mainfrom
chore/xcode-bundle-embedded-pg
Aug 18, 2026
Merged

chore(build): Xcode 加 Bundle Embedded PostgreSQL 构建阶段——本地构建产物直接带嵌入式 PG#228
KerroKapple merged 1 commit into
mainfrom
chore/xcode-bundle-embedded-pg

Conversation

@KerroKapple

Copy link
Copy Markdown
Owner

概要

给 Runner target 加一个 Bundle Embedded PostgreSQL shell 构建阶段:按本机架构(arm64/x64)把 Runner/Resources/pg/<arch>/ rsync -a --delete 进 app bundle 的 Contents/Resources/pg/<arch>/

  • 动机:此前本地 flutter build macos 产物不带嵌入式 PG,起不来;发布线(CI 脚本)能装但开发机要手配。LB-23(perf: LB-23 内存基线——cacheWidth 收口 + ImageCache 256MB + 水位基线 #227)的空载 RSS 实测就是靠这段跑通的。
  • 缺二进制时不阻塞:仅 warning 提示跑 scripts/pg/make-relocatable-macos.sh
  • alwaysOutOfDate = 1:无 input/output 声明,每次构建都跑,rsync 增量开销可忽略。

测试

纯 Xcode 工程配置,无 Dart 面;pre-commit/pre-push 全量闸门过。本机 release 构建 + 启动实测通过(#227 的 140MB 空载数据即此产物)。

🤖 Generated with Claude Code

…ld macos 产物直接带嵌入式 PG

本机按架构从 Runner/Resources/pg/ rsync 进 app bundle;缺二进制时仅警告
提示跑 scripts/pg/make-relocatable-macos.sh,不阻塞构建。免每个开发机手配,
LB-23 空载实测即靠此产物跑通。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@KerroKapple
KerroKapple merged commit 468e32f into main Aug 18, 2026
5 checks passed
@KerroKapple
KerroKapple deleted the chore/xcode-bundle-embedded-pg branch August 18, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant