Slight tweaks to app.ts, added environment var that displays renderer logs in console

This commit is contained in:
Core 2022-01-09 01:20:08 +00:00
parent 7318aa8aab
commit 6dad815d48
No known key found for this signature in database
GPG key ID: 1B77805746C47C28
3 changed files with 15 additions and 21 deletions

View file

@ -1,22 +1,16 @@
require('v8-compile-cache');
import { app } from 'electron';
// import { resolve } from 'path';
// Analytics for debugging fun yeah.
// const ElectronSentry = require("@sentry/electron");
// ElectronSentry.init({ dsn: "https://68c422bfaaf44dea880b86aad5a820d2@o954055.ingest.sentry.io/6112214" });
//
// // const {Init} = require("./src/main/cider-base");
// // Init()
//
const ElectronSentry = require("@sentry/electron");
ElectronSentry.init({dsn: "https://68c422bfaaf44dea880b86aad5a820d2@o954055.ingest.sentry.io/6112214"});
import {app} from 'electron';
import {Win} from "./base/win";
import {ConfigStore} from "./base/store";
import {AppEvents} from "./base/app";
const config = new ConfigStore();
console.log(config)
const App = new AppEvents(config.store);
const Cider = new Win(app, config.store)
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -24,7 +18,7 @@ const Cider = new Win(app, config.store)
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
app.on('ready', () => {
App.ready();
console.log('[Cider] Application is Ready. Creating Window.')
if (!app.isPackaged) {
@ -32,10 +26,9 @@ app.on('ready', () => {
require('vue-devtools').install()
}
Cider.createWindow();
// CiderBase.Start()
Cider.createWindow();
});
//
// app.on('before-quit', () => {
// app.isQuiting = true;