feat: 完善图像工作区与创作工具体验
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-08-16 14:08:02 +08:00
parent bfcb88cfef
commit 26b52d76e3
92 changed files with 16678 additions and 2975 deletions

View File

@@ -0,0 +1,25 @@
import { spawn } from 'node:child_process';
import { resolve } from 'node:path';
const viteEntry = resolve(process.cwd(), 'node_modules/vite/bin/vite.js');
const child = spawn(process.execPath, [viteEntry, ...process.argv.slice(2)], {
stdio: 'inherit',
env: {
...process.env,
NIANCODE_IMAGE_WORKSPACE_MODE: 'cloud',
},
});
for (const signal of ['SIGINT', 'SIGTERM']) {
process.on(signal, () => {
child.kill(signal);
});
}
child.on('exit', (code, signal) => {
if (signal) {
process.kill(process.pid, signal);
return;
}
process.exitCode = code ?? 1;
});