Skip to content

create_dmg.sh: prevent stale app version from being packaged#3

Open
5739n4 wants to merge 1 commit into
rashn:mainfrom
5739n4:fix/dmg-app-version-guard
Open

create_dmg.sh: prevent stale app version from being packaged#3
5739n4 wants to merge 1 commit into
rashn:mainfrom
5739n4:fix/dmg-app-version-guard

Conversation

@5739n4
Copy link
Copy Markdown

@5739n4 5739n4 commented May 1, 2026

Summary

  • add a preflight check in create_dmg.sh to verify RuSwitcher.app exists before packaging
  • read CFBundleShortVersionString and CFBundleVersion from the app bundle and compare against version.json
  • fail fast with a clear rebuild hint when versions do not match, preventing mislabeled DMGs (e.g. 2.1.0 DMG containing 2.0.3 app)

Why

The DMG filename currently comes from version.json, but the script packages whatever local RuSwitcher.app is present. If that app is stale, a release artifact can be tagged with a newer version while containing older binaries.

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