[bugfix] remove auto update for linux builds

This commit is contained in:
silentrald
2024-12-10 09:26:57 +08:00
parent 60c410671a
commit a47f17e766
4 changed files with 61 additions and 21 deletions
+10 -4
View File
@@ -19,10 +19,16 @@ export class AutoUpdaterService {
autoUpdater.autoDownload = false;
}
public isUpdateAvailable(): Promise<boolean> {
return autoUpdater.checkForUpdates().then(info => {
return !!info?.updateInfo && gt(info.updateInfo.version, autoUpdater.currentVersion.version);
}).catch(() => false);
public async isUpdateAvailable(): Promise<boolean> {
return autoUpdater.checkForUpdates()
.then(info => {
return !!info?.updateInfo && gt(
info.updateInfo.version, autoUpdater.currentVersion.version
)})
.catch(error => {
log.error("Could not get update", error);
return false;
});
}
public downloadUpdate(): Observable<Progression> {