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 });