最新修改验证 (#162)
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Haze <hazeone@users.noreply.github.com>
This commit is contained in:
@@ -126,6 +126,9 @@ nsis:
|
||||
|
||||
# Linux Configuration
|
||||
linux:
|
||||
extraResources:
|
||||
- from: resources/bin/linux-${arch}
|
||||
to: bin
|
||||
icon: resources/icons
|
||||
target:
|
||||
- target: AppImage
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user