bring back auto upd
This commit is contained in:
parent
656acaad0f
commit
462d77fc1e
1 changed files with 5 additions and 6 deletions
|
@ -684,7 +684,7 @@ export class BrowserWindow {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
/*
|
|
||||||
ipcMain.on('check-for-update', async (_event) => {
|
ipcMain.on('check-for-update', async (_event) => {
|
||||||
const branch = utils.getStoreValue('general.update_branch')
|
const branch = utils.getStoreValue('general.update_branch')
|
||||||
let latestbranch = await fetch(`https://circleci.com/api/v1.1/project/gh/ciderapp/Cider/latest/artifacts?branch=${branch}&filter=successful`)
|
let latestbranch = await fetch(`https://circleci.com/api/v1.1/project/gh/ciderapp/Cider/latest/artifacts?branch=${branch}&filter=successful`)
|
||||||
|
@ -700,10 +700,10 @@ export class BrowserWindow {
|
||||||
const options: any = {
|
const options: any = {
|
||||||
provider: 'generic',
|
provider: 'generic',
|
||||||
url: `${base_url}`
|
url: `${base_url}`
|
||||||
}*/
|
}
|
||||||
/*
|
|
||||||
* Have to handle the auto updaters seperatly until we can support macOS. electron-builder limitation -q
|
// Have to handle the auto updaters seperatly until we can support macOS. electron-builder limitation -q
|
||||||
*/ /*
|
|
||||||
const win_autoUpdater = new NsisUpdater(options) //Windows
|
const win_autoUpdater = new NsisUpdater(options) //Windows
|
||||||
const linux_autoUpdater = new AppImageUpdater(options) //Linux
|
const linux_autoUpdater = new AppImageUpdater(options) //Linux
|
||||||
await win_autoUpdater.checkForUpdatesAndNotify()
|
await win_autoUpdater.checkForUpdatesAndNotify()
|
||||||
|
@ -717,7 +717,6 @@ export class BrowserWindow {
|
||||||
event.returnValue = true
|
event.returnValue = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
*/
|
|
||||||
|
|
||||||
ipcMain.on('share-menu', async (_event, url) => {
|
ipcMain.on('share-menu', async (_event, url) => {
|
||||||
if (process.platform != 'darwin') return;
|
if (process.platform != 'darwin') return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue