fix: no longer check for updates if portable version is detected

This commit is contained in:
Jelle Glebbeek
2021-06-15 02:34:56 +02:00
parent 09c1509285
commit 769e5be37f

10
main.js
View File

@@ -104,9 +104,13 @@ function startCriticalHandlers(env) {
}
})
let appUpdater = new AppUpdater(env, win);
env.appUpdater = appUpdater;
appUpdater.checkUpdate();
let appUpdater = new AppUpdater(env, win);
env.appUpdater = appUpdater;
if(!this.appPath.includes("\\AppData\\Local\\Temp\\")) {
//Don't check the app when it is in portable mode
appUpdater.checkUpdate();
}
ipcMain.handle("installUpdate", () => {
appUpdater.installUpdate();