From f42c4561f6767cecf8026a68234bf24179d37ede Mon Sep 17 00:00:00 2001 From: bluegill Date: Thu, 23 Mar 2017 00:46:16 -0400 Subject: [PATCH] Use GitHub releases for updates --- app/components/updater.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/updater.js b/app/components/updater.js index 45023c3..1bc8fa7 100644 --- a/app/components/updater.js +++ b/app/components/updater.js @@ -20,7 +20,7 @@ module.exports = class { this.options = parent.preferencesModule this.updatePath = 'https://raw.githubusercontent.com/bluegill/katana/master/package.json' - this.downloadPath = 'https://getkatana.com/download/latest.zip' + this.downloadPath = 'https://github.com/bluegill/katana/releases/download/' this.checkOnLaunch = true this.checkInterval = 12 // 12 hours @@ -81,6 +81,10 @@ module.exports = class { if (json.version !== pkg.version) { console.log('Update available!') + const binary = `katana-${json.version}-mac.zip` + + this.downloadPath += `v${json.version}/${binary}` + this.options.showWindow(true) this.options.win.webContents.send('showUpdate') } else {