More testing

This commit is contained in:
GamingLiamStudios 2022-02-07 21:29:28 +11:00
parent 0568fe9282
commit fc238af861
No known key found for this signature in database
GPG key ID: 3650DE4EAFF62ADD

View file

@ -564,6 +564,7 @@ export class BrowserWindow {
}); });
ipcMain.on('check-for-update', async (_event) => { ipcMain.on('check-for-update', async (_event) => {
console.log('Checking for updates')
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`)
if (latestbranch.status != 200) { if (latestbranch.status != 200) {