From 2dfcc4e60020ccac5823a3628f95fac3698f32e4 Mon Sep 17 00:00:00 2001 From: Haze <709547807@qq.com> Date: Wed, 25 Feb 2026 16:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E6=96=B0=E4=BF=AE=E6=94=B9=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=20(#162)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor Agent Co-authored-by: Haze --- electron-builder.yml | 3 +++ electron/utils/uv-setup.ts | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/electron-builder.yml b/electron-builder.yml index 09b19e0d5..db570c1b0 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -126,6 +126,9 @@ nsis: # Linux Configuration linux: + extraResources: + - from: resources/bin/linux-${arch} + to: bin icon: resources/icons target: - target: AppImage diff --git a/electron/utils/uv-setup.ts b/electron/utils/uv-setup.ts index e3747afc3..b20cb3fd9 100644 --- a/electron/utils/uv-setup.ts +++ b/electron/utils/uv-setup.ts @@ -1,5 +1,5 @@ import { app } from 'electron'; -import { spawn } from 'child_process'; +import { execSync, spawn } from 'child_process'; import { existsSync } from 'fs'; import { join } from 'path'; import { getUvMirrorEnv } from './uv-env'; @@ -50,7 +50,6 @@ function resolveUvBin(): { bin: string; source: 'bundled' | 'path' | 'bundled-fa } function findUvInPathSync(): boolean { - const { execSync } = require('child_process') as typeof import('child_process'); try { const cmd = process.platform === 'win32' ? 'where.exe uv' : 'which uv'; execSync(cmd, { stdio: 'ignore', timeout: 5000 });