Add bun_version to link metadata (#25545)

## Summary
- Add `bun_version` field to `link-metadata.json`
- Pass `VERSION` CMake variable to the metadata script as `BUN_VERSION`
env var

This ensures the build version is captured in the link metadata JSON
file, which is useful for tracking which version produced a given build
artifact.

## Test plan
- Build with `bun bd` and verify `link-metadata.json` includes
`bun_version`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Dylan Conway
2025-12-16 19:53:05 -08:00
committed by GitHub
parent bc47f87450
commit 1e86cebd74
2 changed files with 2 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ const symbolsTxt = await Bun.file(join(repoRoot, "src", "symbols.txt")).text();
// Create metadata JSON with link command included
const metadata = {
bun_version: process.env.BUN_VERSION || "",
webkit_url: process.env.WEBKIT_DOWNLOAD_URL || "",
webkit_version: process.env.WEBKIT_VERSION || "",
zig_commit: process.env.ZIG_COMMIT || "",