chore(build): Xcode 加 Bundle Embedded PostgreSQL 构建阶段——本地构建产物直接带嵌入式 PG - #228
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
给 Runner target 加一个
Bundle Embedded PostgreSQLshell 构建阶段:按本机架构(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 实测就是靠这段跑通的。scripts/pg/make-relocatable-macos.sh。alwaysOutOfDate = 1:无 input/output 声明,每次构建都跑,rsync 增量开销可忽略。测试
纯 Xcode 工程配置,无 Dart 面;pre-commit/pre-push 全量闸门过。本机 release 构建 + 启动实测通过(#227 的 140MB 空载数据即此产物)。
🤖 Generated with Claude Code