mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
23 lines
387 B
JavaScript
Executable File
23 lines
387 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
import { spawn } from 'node:child_process';
|
|
|
|
const env = { ...process.env };
|
|
delete env.TAURI_ENV_PLATFORM;
|
|
|
|
env.LIME_BROWSER_BRIDGE = '1';
|
|
|
|
const child = spawn('npx', ['vite'], {
|
|
stdio: 'inherit',
|
|
shell: true,
|
|
env,
|
|
});
|
|
|
|
child.on('exit', (code, signal) => {
|
|
if (signal) {
|
|
process.kill(process.pid, signal);
|
|
return;
|
|
}
|
|
process.exit(code ?? 0);
|
|
});
|