build(widget): sync widget version to the app version#19
Merged
Conversation
The widget Info.plist hard-coded CFBundleShortVersionString 0.1.0. Make it derive from a build setting instead: reference $(MARKETING_VERSION) and $(CURRENT_PROJECT_VERSION) in Info.plist, and inject the app version via xcodebuild in both the release script (from the git tag) and the local build.sh (from tauri.conf.json). project.yml keeps 0.0.0/1 as a bare-build fallback. The widget now always matches the app version. Co-Authored-By: Claude Opus 4.8 <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.
The widget's
Info.plisthard-codedCFBundleShortVersionStringto0.1.0, so it wouldn't track the app version.Now it derives from build settings:
Info.plistuses$(MARKETING_VERSION)/$(CURRENT_PROJECT_VERSION)(Xcode expands these duringProcessInfoPlistFile).scripts/macos-release.shpassesMARKETING_VERSION=$VERSION CURRENT_PROJECT_VERSION=$VERSIONtoxcodebuild(VERSION comes from the release tag).widget/build.shderives the version fromtauri.conf.jsonand passes the same.project.ymlkeeps0.0.0/1as a bare-build fallback.Validated:
xcodegen generateaccepts the config and the settings appear in the regenerated project; both scripts passbash -n. The plist expansion itself runs during the macOS release build (standard Xcode mechanism).🤖 Generated with Claude Code