make mac app quit on close
This commit is contained in:
parent
886fe15abf
commit
b371589dec
4
main.js
4
main.js
@ -110,7 +110,7 @@ app.on('ready', createWindow)
|
|||||||
app.on('window-all-closed', () => {
|
app.on('window-all-closed', () => {
|
||||||
// On macOS it is common for applications and their menu bar
|
// On macOS it is common for applications and their menu bar
|
||||||
// to stay active until the user quits explicitly with Cmd + Q
|
// to stay active until the user quits explicitly with Cmd + Q
|
||||||
if (process.platform !== 'darwin') {
|
//if (process.platform !== 'darwin') {
|
||||||
app.quit()
|
app.quit()
|
||||||
}
|
//}
|
||||||
})
|
})
|
||||||
|
@ -1,2 +1,8 @@
|
|||||||
# Mac OS X
|
# Mac OS X
|
||||||
electron-packager . "MillionHopes" --all --overwrite --icon icon.icns --out out
|
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
|
||||||
|
Reference in New Issue
Block a user