Skip to content

fix(release): About and exe version read the fork's VERSION file - #30

Merged
synthet merged 1 commit into
masterfrom
af/warp-9wwt2-version-source-check-explain-or
Nov 27, 2026
Merged

synthet merged 1 commit into
masterfrom
af/warp-9wwt2-version-source-check-explain-or

Conversation

@synthet

@synthet synthet commented Nov 27, 2026

Copy link
Copy Markdown
Owner

About showed Synth Term 0.1.0 because app/build.rs fell back to CARGO_PKG_VERSION. That is upstream's app/Cargo.toml value of 0.1.0, which this fork never bumps. The fork's release version lives in the repo-root VERSION file: 0.2.0 on master, and 0.3.0 on chore/release-v0.3.0 (#16). deploy.ps1 never sets GIT_RELEASE_TAG, and bundle.ps1 sets it only when -release-tag is passed.

Changes

  • app/build.rs: new fork_version() reads ../VERSION, trimmed. If the file is missing or empty it falls back to CARGO_PKG_VERSION.
    • Its value is used for the WARP_DISPLAY_VERSION fallback (About version row and headline) and the Windows exe version resource.
    • Adds rerun-if-changed=../VERSION.
    • GIT_RELEASE_TAG still takes priority when set.
  • docs/CANONICAL_SOURCES.md: new row naming VERSION as the source of the app version.
  • docs/guides/windows-local-deploy.md: explains where the FileVersion string comes from.

Verification

  • cargo check -p warp --lib passes, and the build script output now has cargo:rustc-env=WARP_DISPLAY_VERSION=v0.2.0+0e6fd3ac (was v0.1.0+…) plus cargo: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

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>
@synthet
synthet merged commit 7de6f11 into master Nov 27, 2026
@synthet
synthet deleted the af/warp-9wwt2-version-source-check-explain-or branch November 27, 2026 05:06
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