Skip to content

fix(desktop): electron/main.ts cmd/args 未定义 (v1.43.0 桌面构建挂)#157

Open
Wool-xing wants to merge 2 commits into
mainfrom
fix/electron-main-ts-undefined
Open

fix(desktop): electron/main.ts cmd/args 未定义 (v1.43.0 桌面构建挂)#157
Wool-xing wants to merge 2 commits into
mainfrom
fix/electron-main-ts-undefined

Conversation

@Wool-xing
Copy link
Copy Markdown
Owner

desktop/electron/main.ts:46 spawn(cmd, args, ...) 引用未定义变量 (重构遗留)。TS 编译 TS2304 → desktop-release v1.43.0 build-macos + build-windows 两侧 Build Electron 步骤都挂。改用 spawn(getBackendPath(), [], ...) 直接调用打包后的 backend 二进制 (.exe / 无后缀),与 isDev 分支对称。修复后将打 v1.43.1 tag 重新触发 desktop-release。

xiaoxing0135 added 2 commits May 28, 2026 03:41
L46 `spawn(cmd, args, ...)` 引用未定义变量 (重构遗留),
TS 编译 error TS2304 → desktop-release v1.43.0 build-macos/build-windows
两侧 Build Electron 步骤都挂。

修: 改用 spawn(getBackendPath(), [], ...) 调用打包后的 backend 二进制 (.exe / 无后缀),
与 isDev 分支对称, 直接走 packaged backend, 无需 args。
- Python-based, works on Windows/macOS/Linux

- Auto-install git/node via winget/brew/apt/apk if missing

- Default project dir: ./Test-Agent

- Keep all original logic: venv, CN mirror, idempotent backup, Windows C-compiler skip, CI dev mode

- Delete install.sh (bash-only, replaced by install.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant