diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index bfd02aff2..9c7140de2 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -131,7 +131,7 @@ jobs: - name: Install OpenTUI x64 core (macOS x86_64) if: matrix.os_type == 'macos' && matrix.target == 'x86_64-apple-darwin' - run: pnpm add -w --ignore-workspace-root-check --no-save @opentui/core-darwin-x64@0.1.77 + run: pnpm add -w --ignore-workspace-root-check @opentui/core-darwin-x64@0.1.77 - name: Install Linux build dependencies if: matrix.os_type == 'linux' @@ -274,7 +274,6 @@ jobs: tauriScript: pnpm exec tauri -vvv args: ${{ matrix.args }} retryAttempts: 3 - uploadUpdaterJson: true - name: Build + upload if: matrix.os_type != 'macos' || env.MACOS_NOTARIZE != 'true' @@ -301,4 +300,3 @@ jobs: tauriScript: pnpm exec tauri -vvv args: ${{ matrix.args }} retryAttempts: 3 - uploadUpdaterJson: true diff --git a/.github/workflows/release-macos-aarch64.yml b/.github/workflows/release-macos-aarch64.yml index 86fe39d60..47bb5b5b9 100644 --- a/.github/workflows/release-macos-aarch64.yml +++ b/.github/workflows/release-macos-aarch64.yml @@ -235,7 +235,7 @@ jobs: - name: Install OpenTUI x64 core (macOS x86_64) if: matrix.os_type == 'macos' && matrix.target == 'x86_64-apple-darwin' - run: pnpm add -w --ignore-workspace-root-check --no-save @opentui/core-darwin-x64@0.1.77 + run: pnpm add -w --ignore-workspace-root-check @opentui/core-darwin-x64@0.1.77 - name: Install Linux build dependencies if: matrix.os_type == 'linux' diff --git a/packages/desktop/scripts/prepare-sidecar.mjs b/packages/desktop/scripts/prepare-sidecar.mjs index 6955fff4e..0e1fd40a7 100644 --- a/packages/desktop/scripts/prepare-sidecar.mjs +++ b/packages/desktop/scripts/prepare-sidecar.mjs @@ -522,7 +522,15 @@ if (shouldBuildOpenwrk) { if (bunTarget) { openwrkArgs.push("--target", bunTarget); } - const result = spawnSync("bun", openwrkArgs, { cwd: openwrkDir, stdio: "inherit" }); + const result = spawnSync("bun", openwrkArgs, { + cwd: openwrkDir, + stdio: "inherit", + env: { + ...process.env, + NODE_ENV: "production", + BUN_ENV: "production", + }, + }); if (result.status !== 0) { process.exit(result.status ?? 1); }