Skip to content

fix: inject release tag version into binary - #5

Merged
bcho merged 1 commit into
mainfrom
fix/release-version
Jul 10, 2026
Merged

fix: inject release tag version into binary#5
bcho merged 1 commit into
mainfrom
fix/release-version

Conversation

@bcho

@bcho bcho commented Jul 10, 2026

Copy link
Copy Markdown
Member

What changed

  • Allow B4FUN_AI_VERSION to override the package version in standalone SEA builds.
  • Derive release build versions from tags such as v0.2.0.
  • Verify release binaries report the tag-derived version.
  • Keep local builds defaulting to the version in package.json.

Why

The v0.2.0 release assets were built from a package still declaring 0.1.2, so ai upgrade downloaded the latest asset but the installed binary continued to report 0.1.2.

Validation

  • npm test
  • npm run check
  • B4FUN_AI_VERSION=0.2.0 npm run build:sea and dist/sea/ai --version reports 0.2.0
  • npm run build:sea and dist/sea/ai --version reports package version 0.1.2

@bcho
bcho merged commit 1632c17 into main Jul 10, 2026
1 check passed
@bcho
bcho deleted the fix/release-version branch July 10, 2026 22:53
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