Bump to Electron v16 with patches, remove docs/ due to mistreatment and lack of updates.

This commit is contained in:
cryptofyre 2021-12-29 23:13:23 -06:00
parent a256a72652
commit 691a592d8c
29 changed files with 18 additions and 3527 deletions

View file

@ -1,5 +1,5 @@
require('v8-compile-cache');
const { app } = require('electron'),
const { app, components } = require('electron'),
{resolve} = require("path"),
CiderBase = require ('./src/main/cider-base');
@ -97,17 +97,21 @@ if (process.platform === "linux") {
app.commandLine.appendSwitch('js-flags', '--max-old-space-size=1024')
app.on('ready', () => {
if (app.isQuiting) { app.quit(); return; }
app.commandLine.appendSwitch('high-dpi-support', 1)
app.commandLine.appendSwitch('force-device-scale-factor', 1)
app.commandLine.appendSwitch('disable-pinch');
console.log('[Cider] Application is Ready. Creating Window.')
if (!app.isPackaged) {
console.info('[Cider] Running in development mode.')
require('vue-devtools').install()
}
CreateWindow()
app.whenReady().then(async () => {
await components.whenReady().catch(e => console.log(`component ready fail:`, e));
console.log('components ready:', components.status());
if (app.isQuiting) { app.quit(); return; }
app.commandLine.appendSwitch('high-dpi-support', 1)
app.commandLine.appendSwitch('force-device-scale-factor', 1)
app.commandLine.appendSwitch('disable-pinch');
console.log('[Cider] Application is Ready. Creating Window.')
if (!app.isPackaged) {
console.info('[Cider] Running in development mode.')
require('vue-devtools').install()
}
CreateWindow()
})
});
app.on('before-quit', () => {