最新修改验证 (#162)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Haze <hazeone@users.noreply.github.com>
This commit is contained in:
Haze
2026-02-25 16:07:30 +08:00
committed by GitHub
Unverified
parent 25476488c6
commit 2dfcc4e600
2 changed files with 4 additions and 2 deletions

View File

@@ -126,6 +126,9 @@ nsis:
# Linux Configuration
linux:
extraResources:
- from: resources/bin/linux-${arch}
to: bin
icon: resources/icons
target:
- target: AppImage

View File

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