mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
fix auto update, versions wrongly comparated
This commit is contained in:
@@ -25,8 +25,7 @@ export class AutoUpdaterService {
|
||||
autoUpdater.checkForUpdates().then(info => {
|
||||
const needUpdate = (() => {
|
||||
if(!info || !info.updateInfo){ return false; }
|
||||
if(gt(autoUpdater.currentVersion.version, info.updateInfo.version)){ return false; }
|
||||
return true;
|
||||
return gt(info.updateInfo.version, autoUpdater.currentVersion.version);
|
||||
})();
|
||||
resolve(needUpdate)}
|
||||
).catch(() => resolve(false));
|
||||
|
||||
Reference in New Issue
Block a user