Merge branch 'main' into develop

This commit is contained in:
Core 2022-01-31 23:17:58 +00:00
commit 2beacde7c1
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
23 changed files with 985 additions and 171 deletions

View file

@ -13,7 +13,7 @@ import * as mm from 'music-metadata';
import fetch from 'electron-fetch'
import {wsapi} from "./wsapi";
import * as jsonc from "jsonc";
import { NsisUpdater, AppImageUpdater } from "electron-updater";
export class Win {
private win: any | undefined = null;
private app: any | undefined = null;
@ -529,6 +529,15 @@ export class Win {
})
});
electron.ipcMain.on('check-for-update', async (_event, url) => {
const options = {
provider: 'generic',
url: 'https://43-429851205-gh.circle-artifacts.com/0/%7E/Cider/dist/artifacts' //Base URL
}
const autoUpdater = new NsisUpdater(options) //Windows Only (for now) -q
autoUpdater.checkForUpdatesAndNotify()
})
/* *********************************************************************************************
* Window Events
* **********************************************************************************************/