diff --git a/cli/scripts/publish-npm.ts b/cli/scripts/publish-npm.ts index 6711fc77..338e1087 100644 --- a/cli/scripts/publish-npm.ts +++ b/cli/scripts/publish-npm.ts @@ -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 { 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()) { diff --git a/package.json b/package.json index 7c20b5a9..67caecee 100644 --- a/package.json +++ b/package.json @@ -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",