diff --git a/package.json b/package.json index daadc3f..56a6245 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,13 @@ }, "config": { "forge": { - "packagerConfig": {}, + "packagerConfig": { + "arch": "x64", + "asar": true, + "dir": "./dist", + "out": "out", + "overwrite": true + }, "makers": [ { "name": "@electron-forge/maker-squirrel", diff --git a/script/dev-runner.ts b/script/dev-runner.ts index 17074e9..3b7f859 100644 --- a/script/dev-runner.ts +++ b/script/dev-runner.ts @@ -89,6 +89,7 @@ function runElectron() { console.log('[electron]', chalk.green(`electron ready.`)) child.on("close", () => { if (!manualRestart) { + // https://juejin.cn/post/6844904071682326535 vitePorcess.kill() child.kill() process.exit()