Skip to content

Commit

Permalink
Use GitHub releases for updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegill committed Mar 23, 2017
1 parent 9cf3724 commit f42c456
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f42c456

Please sign in to comment.