mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[bugfix] remove auto update for linux builds
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user