8000 fix(collector): give development app builds their own bundle identifier by InfinityPacer · Pull Request #60 · InfinityPacer/meterleaf · GitHub
[go: up one dir, main page]

Skip to content

fix(collector): give development app builds their own bundle identifier - #60

Merged
InfinityPacer merged 1 commit into
mainfrom
fix/collector-dev-bundle-id
Oct 30, 2026
Merged

InfinityPacer merged 1 commit into
mainfrom
fix/collector-dev-bundle-id

Conversation

@InfinityPacer
Copy link
Copy Markdown
Owner

问题

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

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>
@InfinityPacer
InfinityPacer merged commit 41eb6e8 into main Oct 30, 2026
2 checks passed
@InfinityPacer
InfinityPacer deleted the fix/collector-dev-bundle-id branch October 30, 2026 09:20
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

0