Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(desktop): unblock Windows + Linux release packaging (#1443)
devv-eve52c9bd72cb37
diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex 502ce2c8b2..941c661838 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -2,6 +2,18 @@"name": "@multica/desktop","version": "0.1.0","private": true,+ "description": "Multica Desktop — native desktop client for the Multica platform.",+ "homepage": "https://multica.ai",+ "repository": {+ "type": "git",+ "url": "https://github.com/multica-ai/multica.git",+ "directory": "apps/desktop"+ },+ "author": {+ "name": "Multica",+ "email": "[email protected]"+ },+ "license": "UNLICENSED","main": "./out/main/index.js","scripts": {"bundle-cli": "node scripts/bundle-cli.mjs",diff --git a/apps/desktop/scripts/package.mjs b/apps/desktop/scripts/package.mjsindex 86aa4618fb..886bbfe925 100644--- a/apps/desktop/scripts/package.mjs+++ b/apps/desktop/scripts/package.mjs@@ -329,10 +329,18 @@ function main() {//// CI invokes this script via `node scripts/package.mjs`, so we cannot// rely on pnpm/npm to inject package-local binaries into PATH.+ //+ // `shell: true` is required on Windows: `node_modules/.bin/electron-vite`+ // ships as a `.cmd` shim there, and Node's `spawnSync` does not honour+ // PATHEXT when spawning a bare command without a shell — it would fail+ // with `ENOENT`. On POSIX hosts the shim is a real executable so going+ // through the shell is harmless. See+ // https://nodejs.org/api/child_process.html#spawning-bat-and-cmd-files-on-windowsconst viteResult = spawnSync("electron-vite", ["build"], {stdio: "inherit",cwd: desktopRoot,env: envWithLocalBins(),+ shell: true,});if (viteResult.error) {console.error(@@ -391,10 +399,13 @@ function main() {});// Step 4: invoke electron-builder for the current target only.+ // `shell: true` for the same Windows `.cmd` shim reason as the+ // electron-vite invocation above.const result = spawnSync("electron-builder", builderArgs, {stdio: "inherit",cwd: desktopRoot,env: envWithLocalBins(),+ shell: true,});if (result.error) {