Repository navigation
fix(release): About and exe version read the fork's VERSION file - #30
Merged
Merged
Conversation
About showed "Synth Term 0.1.0" because app/build.rs fell back to CARGO_PKG_VERSION, which is upstream's app/Cargo.toml 0.1.0 and never bumped in this fork. The fork's release version lives in the repo-root VERSION file (0.2.0 on master; chore/release-v0.3.0 bumps it to 0.3.0), and deploy.ps1 never sets GIT_RELEASE_TAG. - build.rs: new fork_version() reads ../VERSION (trimmed), falling back to CARGO_PKG_VERSION when missing or empty. It feeds the WARP_DISPLAY_VERSION fallback and the Windows exe version resource; rerun-if-changed=../VERSION. GIT_RELEASE_TAG still wins when set. - docs: CANONICAL_SOURCES.md names VERSION as the app-version source; windows-local-deploy.md explains the FileVersion string. Refs warp-9wwt2 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.
About showed Synth Term 0.1.0 because
app/build.rsfell back toCARGO_PKG_VERSION. That is upstream'sapp/Cargo.tomlvalue of0.1.0, which this fork never bumps. The fork's release version lives in the repo-rootVERSIONfile:0.2.0on master, and0.3.0onchore/release-v0.3.0(#16).deploy.ps1never setsGIT_RELEASE_TAG, andbundle.ps1sets it only when-release-tagis passed.Changes
app/build.rs: newfork_version()reads../VERSION, trimmed. If the file is missing or empty it falls back toCARGO_PKG_VERSION.WARP_DISPLAY_VERSIONfallback (About version row and headline) and the Windows exe version resource.rerun-if-changed=../VERSION.GIT_RELEASE_TAGstill takes priority when set.docs/CANONICAL_SOURCES.md: new row namingVERSIONas the source of the app version.docs/guides/windows-local-deploy.md: explains where theFileVersionstring comes from.Verification
cargo check -p warp --libpasses, and the build script output now hascargo:rustc-env=WARP_DISPLAY_VERSION=v0.2.0+0e6fd3ac(wasv0.1.0+…) pluscargo:rerun-if-changed=../VERSION.cargo clippy -p warp --lib -- -D warnings: clean.About will read "Synth Term 0.2.0" on master, and 0.3.0 once #16 merges. I didn't check the About page in a running app.
bundle.ps1's installer version still falls back to'0.1.0'when no release tag is given; this PR leaves it unchanged.Refs warp-9wwt2
🤖 Generated with Claude Code