diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..a6ef790 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npm.taobao.org/ diff --git a/main.js b/main.js index 312c676..b22c994 100644 --- a/main.js +++ b/main.js @@ -12,4 +12,7 @@ const createWindow = () => { app.whenReady().then(() => { createWindow() -}) \ No newline at end of file +}) +app.on('window-all-closed', () => { + if (process.platform !== 'darwin') app.quit() + }) \ No newline at end of file