FN-7568: rename CLI release binary assets to fn-cli-<platform>

Renames the downloadable GitHub Release CLI binaries so they don't collide with other well-known fn-named tools on a user's PATH; the local dev binary name is unchanged.

- Update binaryNameForTarget in packages/cli/build.ts to emit fn-cli-<suffix> instead of fn-<suffix> (local dev binary stays fn/fn.exe)
- Update release.yml and test-release.yml build matrices to use fn-cli-linux-x64, fn-cli-linux-arm64, fn-cli-darwin-arm64, fn-cli-windows-x64.exe
- Update build-exe-cross, ci-workflow, and package-config tests to assert the new fn-cli-<platform> asset names
- Add changeset documenting the release-asset rename

Files changed:
 .changeset/fn-7568-fn-cli-release-asset.md         |  7 +++++++
 .github/workflows/release.yml                      |  8 ++++----
 .github/workflows/test-release.yml                 |  8 ++++----
 packages/cli/build.ts                              | 10 ++++++++--
 packages/cli/src/__tests__/build-exe-cross.test.ts | 14 +++++++-------
 packages/cli/src/__tests__/ci-workflow.test.ts     |  8 ++++----
 packages/cli/src/__tests__/package-config.test.ts  | 10 +++++-----
 7 files changed, 39 insertions(+), 26 deletions(-)

Fusion-Task-Id: FN-7568

Fusion-Task-Lineage: 1c04d763-5e2f-43e3-84b7-df8dcff8467f

Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
This commit is contained in:
gsxdsm
2026-07-04 22:33:16 -07:00
parent 6d364fc407
commit 71dfd3aeca
7 changed files with 39 additions and 26 deletions

View File

@@ -36,19 +36,19 @@ jobs:
include:
- os: ubuntu-latest
target: bun-linux-x64
binary: fn-linux-x64
binary: fn-cli-linux-x64
- os: ubuntu-24.04-arm
target: bun-linux-arm64
binary: fn-linux-arm64
binary: fn-cli-linux-arm64
- os: macos-latest
target: bun-darwin-arm64
binary: fn-darwin-arm64
binary: fn-cli-darwin-arm64
# bun-darwin-x64 (Intel) dropped: macos-13 runners are scarce and
# blocked releases by sitting queued for hours. The CLI ships
# Apple-Silicon-only for macOS; desktop macOS DMG/ZIP is universal.
- os: windows-latest
target: bun-windows-x64
binary: fn-windows-x64.exe
binary: fn-cli-windows-x64.exe
steps:
- name: Checkout

View File

@@ -19,18 +19,18 @@ jobs:
include:
- os: ubuntu-latest
target: bun-linux-x64
binary: fn-linux-x64
binary: fn-cli-linux-x64
- os: ubuntu-24.04-arm
target: bun-linux-arm64
binary: fn-linux-arm64
binary: fn-cli-linux-arm64
- os: macos-latest
target: bun-darwin-arm64
binary: fn-darwin-arm64
binary: fn-cli-darwin-arm64
# bun-darwin-x64 (Intel) dropped: macos-13 runner scarcity — CLI is
# Apple-Silicon-only for macOS. Keep in sync with release.yml.
- os: windows-latest
target: bun-windows-x64
binary: fn-windows-x64.exe
binary: fn-cli-windows-x64.exe
steps:
- name: Checkout