mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-16 01:19:58 +00:00
Update updater.service.ts
This commit is contained in:
parent
2e83b450a9
commit
9a08bf8782
@ -54,11 +54,15 @@ export class ElectronUpdaterService extends UpdaterService {
|
|||||||
config.ready$.toPromise().then(() => {
|
config.ready$.toPromise().then(() => {
|
||||||
if (config.store.enableAutomaticUpdates && this.electronUpdaterAvailable && !process.env.TABBY_DEV) {
|
if (config.store.enableAutomaticUpdates && this.electronUpdaterAvailable && !process.env.TABBY_DEV) {
|
||||||
this.logger.debug('Checking for updates')
|
this.logger.debug('Checking for updates')
|
||||||
|
let arch = process.arch
|
||||||
|
if (process.platform === 'darwin' && process.arch === 'x64') {
|
||||||
|
arch = 'x86_64'
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
this.autoUpdater.setFeedURL({
|
this.autoUpdater.setFeedURL({
|
||||||
provider: 's3',
|
provider: 's3',
|
||||||
bucket: 'tabby-updates',
|
bucket: 'tabby-updates',
|
||||||
path: `updates-latest-${process.arch}`,
|
path: `updates-latest-${arch}`,
|
||||||
})
|
})
|
||||||
this.autoUpdater.checkForUpdates()
|
this.autoUpdater.checkForUpdates()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user