mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 01:17:14 +00:00
Update updater.service.ts
This commit is contained in:
parent
2e83b450a9
commit
9a08bf8782
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue