Always check for updates and update publish script
This commit is contained in:
parent
93faaeb220
commit
7f71669e94
@ -14,7 +14,7 @@
|
|||||||
"dev": "electron . --dev",
|
"dev": "electron . --dev",
|
||||||
"build": "electron-builder",
|
"build": "electron-builder",
|
||||||
"build-arch": "electron-builder --linux dir",
|
"build-arch": "electron-builder --linux dir",
|
||||||
"release": "electron-builder -mwlp always",
|
"release": "GH_TOKEN=$(cat GH_TOKEN) electron-builder -wlp always",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
12
src/main.js
12
src/main.js
@ -36,11 +36,9 @@ function toggleMainWindow() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function createWindow() {
|
async function createWindow() {
|
||||||
// Check for updates on windows and mac
|
// Check for updates
|
||||||
if (process.platform === 'win32' || process.platform === 'darwin') {
|
await autoUpdater.checkForUpdatesAndNotify();
|
||||||
autoUpdater.checkForUpdatesAndNotify();
|
|
||||||
}
|
|
||||||
|
|
||||||
// System tray
|
// System tray
|
||||||
console.log('Loading system Tray');
|
console.log('Loading system Tray');
|
||||||
@ -229,4 +227,6 @@ function listIcons(set) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log('Starting app');
|
console.log('Starting app');
|
||||||
app.on('ready', createWindow);
|
app.on('ready', () => {
|
||||||
|
createWindow().catch(console.error);
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user