最新修改验证 (#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 Configuration
|
||||||
linux:
|
linux:
|
||||||
|
extraResources:
|
||||||
|
- from: resources/bin/linux-${arch}
|
||||||
|
to: bin
|
||||||
icon: resources/icons
|
icon: resources/icons
|
||||||
target:
|
target:
|
||||||
- target: AppImage
|
- target: AppImage
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { app } from 'electron';
|
import { app } from 'electron';
|
||||||
import { spawn } from 'child_process';
|
import { execSync, spawn } from 'child_process';
|
||||||
import { existsSync } from 'fs';
|
import { existsSync } from 'fs';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { getUvMirrorEnv } from './uv-env';
|
import { getUvMirrorEnv } from './uv-env';
|
||||||
@@ -50,7 +50,6 @@ function resolveUvBin(): { bin: string; source: 'bundled' | 'path' | 'bundled-fa
|
|||||||
}
|
}
|
||||||
|
|
||||||
function findUvInPathSync(): boolean {
|
function findUvInPathSync(): boolean {
|
||||||
const { execSync } = require('child_process') as typeof import('child_process');
|
|
||||||
try {
|
try {
|
||||||
const cmd = process.platform === 'win32' ? 'where.exe uv' : 'which uv';
|
const cmd = process.platform === 'win32' ? 'where.exe uv' : 'which uv';
|
||||||
execSync(cmd, { stdio: 'ignore', timeout: 5000 });
|
execSync(cmd, { stdio: 'ignore', timeout: 5000 });
|
||||||
|
|||||||
Reference in New Issue
Block a user