[autoUpdate] Switch from CircleCI to GitHub Releases

This commit is contained in:
child_duckling 2022-03-20 21:11:12 -07:00
parent 81bb416498
commit 0e1561127a
5 changed files with 61 additions and 38 deletions

View file

@ -134,14 +134,13 @@ export class utils {
bw.win.webContents.send('update-response', "update-error")
return;
}
const options: any = {
provider: 'github',
protocol: 'https',
releaseType: utils.getStoreValue('general.update_branch') === "develop" ? "prerelease" : "release",
owner: 'ciderapp',
repo: 'cider-releases',
allowDowngrade: true,
}
let autoUpdater: any = null
if (process.platform === 'win32') { //Windows
autoUpdater = await new NsisUpdater(options)