From f60ba5fa291c79d513502b49e7c5ddd1dd58b606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Tue, 21 Apr 2026 01:07:46 -0400 Subject: [PATCH] refactor(release): drop dead boss snapshot members MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `scripts/release-boss.mjs` listed five files under `bossSnapshotIncludes`. Only `build-boss-edition.mjs` is live — invoked by both `release-boss.mjs:178` (local mac) and `.github/workflows/remote-boss-platforms.yml:44` (remote Win). The other four were leftovers from a previous packaging iteration: - `build-boss-mac.mjs` — old mac patcher keyed on `CompanyOnboarding` capital-case paths that no longer exist after the company-onboarding rename. - `build-boss.mjs` — earlier "full edition" builder referencing ProvidersStepShared.tsx / AgentCreator.tsx, both deleted by the pi-mono catalog rewrite. - `build-boss.sh` — thin wrapper that only called `build-boss-mac.mjs`. - `build-boss-desktop.mjs` — shipped to every snapshot branch but never invoked anywhere. Carrying dead code in the snapshot manifest makes each Boss release rsync ~1 k LOC of patches that can never run and, more subtly, tempts a future reader to keep them in sync with the live source. Removing them here and deleting the files themselves (they live in gitignored `boss-build/`, not in tree) leaves exactly one live builder and one snapshot member per real purpose. No functional change to the live release path. Local verified: both `pnpm build:dir` (normal AgentCompany.app) and `node boss-build/build-boss-edition.mjs --platform=mac --version=0.4.167` (Boss arm64 + x64 DMG + zip + blockmap) produce complete artifacts with a clean source tree afterwards. --- scripts/release-boss.mjs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/release-boss.mjs b/scripts/release-boss.mjs index 4d147d2f..90123a64 100644 --- a/scripts/release-boss.mjs +++ b/scripts/release-boss.mjs @@ -36,11 +36,7 @@ const syncExcludes = [ const bossSnapshotIncludes = [ remoteBossWorkflowFile, "boss-build/boss-runtime.json", - "boss-build/build-boss-desktop.mjs", "boss-build/build-boss-edition.mjs", - "boss-build/build-boss-mac.mjs", - "boss-build/build-boss.mjs", - "boss-build/build-boss.sh", "boss-build/electron-builder-boss.yml", ];