1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-11 13:13:59 +03:00

Update updater.service.ts

This commit is contained in:
Eugene Pankov 2022-04-19 12:30:24 +02:00
parent 2e83b450a9
commit 9a08bf8782
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -54,11 +54,15 @@ export class ElectronUpdaterService extends UpdaterService {
config.ready$.toPromise().then(() => {
if (config.store.enableAutomaticUpdates && this.electronUpdaterAvailable && !process.env.TABBY_DEV) {
this.logger.debug('Checking for updates')
let arch = process.arch
if (process.platform === 'darwin' && process.arch === 'x64') {
arch = 'x86_64'
}
try {
this.autoUpdater.setFeedURL({
provider: 's3',
bucket: 'tabby-updates',
path: `updates-latest-${process.arch}`,
path: `updates-latest-${arch}`,
})
this.autoUpdater.checkForUpdates()
} catch (e) {