Repository navigation
fix(collector): give development app builds their own bundle identifier - #60
Merged
Merged
Conversation
macOS resolves the registered background jobs by bundle identifier, so a verification build in dist/ with the installed app's identifier could take over the live sync job. build:collector now produces Meterleaf Dev.app with io.meterleaf.collector.dev; build:app produces the installable Meterleaf.app. Co-Authored-By: Claude Opus 5.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.
问题
macOS 按应用标识解析已登记的后台任务。仓库里
bun run build:collector生成的dist/Meterleaf.app与「应用程序」里已安装的 Meterleaf 标识相同,构建之后本机后台同步可能改跑仓库里的这份开发构建。0.13.0 开发期间实际发生过一次:开发构建接管后台同步约一小时,把尚未修复的记录传到了服务端。结果
bun run build:collector(开发验证、CI 使用)生成dist/Meterleaf Dev.app,标识io.meterleaf.collector.dev,包内后台任务 plist 与签名标识同样使用该标识,不会被系统当成已安装的 Meterleaf。bun run build:app,生成用于安装的dist/Meterleaf.app(标识不变)。README、采集器文档与 AGENTS.md 的安装步骤改用它,并说明装好后不要在dist留一份。验证
bun run typecheck、bun test tests(586 pass / 0 fail)、bun run build通过。build:collector产物的 Info.plist、两个包内 plist 和代码签名标识均为io.meterleaf.collector.dev;build:app产物标识为io.meterleaf.collector。🤖 Generated with Claude Code