Electron怎么重启?
electron吧
全部回复
仅看楼主
level 1
1、尝试cmd命令只能关闭,
2、尝试bat重启,手动执行bat可以重启,使用Electron调用bat命令只能关闭,未实现重启
3、尝试使用app.relaunch();app.exit();只能关闭,未实现重启
最终目的实现Electron的更新并且重启Electron
2022年01月12日 07点01分 1
level 1
在主进程中监听下面代码,页面中调用
ipcMain.on('window-reset', function () {
app.relaunch()
app.exit()
})
2023年07月05日 07点07分 2
level 1
把bat打包成exe用node开个子进程调用重启
2023年09月07日 06点09分 3
1