Skip to content

Commit 2dfcc4e

Browse files
hazeonecursoragent
andauthored
最新修改验证 (#162)
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Haze <hazeone@users.noreply.github.com>
1 parent 2547648 commit 2dfcc4e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

electron-builder.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ nsis:
126126

127127
# Linux Configuration
128128
linux:
129+
extraResources:
130+
- from: resources/bin/linux-${arch}
131+
to: bin
129132
icon: resources/icons
130133
target:
131134
- target: AppImage

electron/utils/uv-setup.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { app } from 'electron';
2-
import { spawn } from 'child_process';
2+
import { execSync, spawn } from 'child_process';
33
import { existsSync } from 'fs';
44
import { join } from 'path';
55
import { getUvMirrorEnv } from './uv-env';
@@ -50,7 +50,6 @@ function resolveUvBin(): { bin: string; source: 'bundled' | 'path' | 'bundled-fa
5050
}
5151

5252
function findUvInPathSync(): boolean {
53-
const { execSync } = require('child_process') as typeof import('child_process');
5453
try {
5554
const cmd = process.platform === 'win32' ? 'where.exe uv' : 'which uv';
5655
execSync(cmd, { stdio: 'ignore', timeout: 5000 });

0 commit comments

Comments
 (0)