From 4087d28cba09ddd765c273fd091ef15ba40ca42a Mon Sep 17 00:00:00 2001 From: DragonnZhang <731557579@qq.com> Date: Mon, 8 Jun 2026 18:41:06 +0800 Subject: [PATCH] ci: package Qwen runtime as Windows extraResource --- apps/electron/electron-builder.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/electron/electron-builder.yml b/apps/electron/electron-builder.yml index cd92a7168..32234dd28 100644 --- a/apps/electron/electron-builder.yml +++ b/apps/electron/electron-builder.yml @@ -136,13 +136,14 @@ win: - "!**/vendor/codex/linux-*/**" - "!**/resources/bin/darwin-*/**" - "!**/resources/bin/linux-*/**" - # WORKAROUND: Exclude bun, codex, and uv from regular files on Windows. + # WORKAROUND: Exclude bun, codex, uv, and Qwen Code from regular files on Windows. # electron-builder's npm node module collector causes EBUSY errors when copying - # .exe files because it scans/locks files while simultaneously trying to copy them. + # files because it scans/locks files while simultaneously trying to copy them. # Moving them to extraResources avoids this by copying before the collector runs. # See: https://github.com/electron-userland/electron-builder/issues/8250 - "!vendor/bun/**/*" - "!vendor/codex/**/*" + - "!vendor/qwen-code/**/*" - "!**/resources/bin/win32-x64/**" # Copy executables as extraResources to avoid EBUSY file locking (see comment above) extraResources: @@ -150,6 +151,8 @@ win: to: vendor/bun/bun.exe - from: vendor/codex/win32-x64 to: app/vendor/codex/win32-x64 + - from: vendor/qwen-code + to: app/vendor/qwen-code - from: resources/bin/win32-x64 to: app/resources/bin/win32-x64 # WhatsApp worker subprocess (self-contained; Baileys bundled in).