refactor: remove non-allinone build scripts and fix npm publish build command

Remove build:cli:exe and build:cli:exe:all scripts since building executables
without web assets serves no practical purpose. Update npm publish script to use
build:single-exe:all which includes embedded web assets in published packages.
This commit is contained in:
weishu
2025-12-24 15:04:26 +08:00
parent 6078c136bb
commit 3e4b8ddc64
2 changed files with 4 additions and 5 deletions
+4 -3
View File
@@ -18,6 +18,7 @@ import { fileURLToPath } from 'node:url';
const __dirname = dirname(fileURLToPath(import.meta.url));
const projectRoot = join(__dirname, '..');
const repoRoot = join(projectRoot, '..');
const PLATFORMS = [
'darwin-arm64',
@@ -91,10 +92,10 @@ async function main(): Promise<void> {
process.exit(1);
}
// Build binaries
// Build binaries (includes web assets)
if (!skipBuild) {
console.log('\n[2/5] Building binaries for all platforms...');
run('bun run build:exe:all');
console.log('\n[2/5] Building binaries for all platforms (with web assets)...');
run('bun run build:single-exe:all', repoRoot);
} else {
console.log('\n[2/5] Skipping build (--skip-build)');
if (!checkBinariesExist()) {
-2
View File
@@ -6,8 +6,6 @@
"dev": "concurrently \"bun run dev:server\" \"bun run dev:web\" --kill-others-on-exit",
"build": "bun run build:cli && bun run build:server && bun run build:web",
"build:cli": "cd cli && bun run build",
"build:cli:exe": "cd cli && bun run build:exe",
"build:cli:exe:all": "cd cli && bun run build:exe:all",
"build:single-exe": "bun run build:web && (cd server && bun run generate:embedded-web-assets) && (cd cli && bun run build:exe:allinone)",
"build:single-exe:all": "bun run build:web && (cd server && bun run generate:embedded-web-assets) && (cd cli && bun run build:exe:allinone:all)",
"build:server": "cd server && bun run build",