make mac app quit on close

This commit is contained in:
Damillora 2017-07-02 23:21:01 +07:00
parent 886fe15abf
commit b371589dec
2 changed files with 8 additions and 2 deletions

View File

@ -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()
}
//}
})

View File

@ -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