From b371589decf8d9fa86ab811de86cdaac7f1079ef Mon Sep 17 00:00:00 2001 From: Damillora Date: Sun, 2 Jul 2017 23:21:01 +0700 Subject: [PATCH] make mac app quit on close --- main.js | 4 ++-- package.sh | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 8d1872f..16b6f59 100644 --- a/main.js +++ b/main.js @@ -110,7 +110,7 @@ app.on('ready', createWindow) app.on('window-all-closed', () => { // On macOS it is common for applications and their menu bar // to stay active until the user quits explicitly with Cmd + Q - if (process.platform !== 'darwin') { + //if (process.platform !== 'darwin') { app.quit() - } + //} }) diff --git a/package.sh b/package.sh index 157e8bf..b923196 100755 --- a/package.sh +++ b/package.sh @@ -1,2 +1,8 @@ # Mac OS X electron-packager . "MillionHopes" --all --overwrite --icon icon.icns --out out +cd out +rm *.zip +for f in MillionHopes-* +do +zip -r $f.zip $f +done