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

@ -62,8 +62,15 @@ export class ConfigStore {
'Q' : [1,1,1,1,1,1,1,1,1,1],
'preamp' : 0,
'mix' : 1,
'vibrantBass' : 0,
'presets': [],
'userGenerated': false
},
"vibrantBass": { // Hard coded into the app. Don't include any of this config into exporting presets in store.ts
'multiplier': 0,
'frequencies': [17.182, 42.169, 53.763, 112.69, 119.65, 264.59, 336.57, 400.65, 505.48, 612.7, 838.7, 1155.3, 1175.6, 3406.8, 5158.6, 5968.1, 6999.9, 7468.6, 8862.9, 9666, 10109],
'Q': [2.5, 0.388, 5, 5, 2.5, 7.071, 14.14, 10, 7.071, 14.14, 8.409, 0.372, 7.071, 10, 16.82, 7.071, 28.28, 20, 8.409, 40, 40],
'gain': [-0.34, 2.49, 0.23, -0.49, 0.23, -0.12, 0.32, -0.29, 0.33, 0.19, -0.18, -1.27, -0.11, 0.25, -0.18, -0.53, 0.34, 1.32, 1.78, 0.41, -0.28]
}
},
"visual": {

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
* **********************************************************************************************/