ci: adding sentry

This commit is contained in:
Chubby Granny Chaser 2024-06-28 20:27:22 +01:00
parent 75b69f38fc
commit ac27438a35
No known key found for this signature in database
15 changed files with 1253 additions and 17 deletions

View file

@ -1,4 +1,5 @@
import { app, BrowserWindow, net, protocol } from "electron";
import { init } from "@sentry/electron/main";
import updater from "electron-updater";
import i18n from "i18next";
import path from "node:path";
@ -22,6 +23,12 @@ autoUpdater.logger = logger;
const gotTheLock = app.requestSingleInstanceLock();
if (!gotTheLock) app.quit();
if (import.meta.env.MAIN_VITE_SENTRY_DSN) {
init({
dsn: import.meta.env.MAIN_VITE_SENTRY_DSN,
});
}
app.commandLine.appendSwitch("--no-sandbox");
i18n.init({