feature/IO-3725-RPS-Changes - Upgrade Electron / Related Electron packages / Sentry For Electron

This commit is contained in:
Dave
2026-05-28 15:10:04 -04:00
parent b6cd010409
commit 5f860d26e3
7 changed files with 1645 additions and 2997 deletions

View File

@@ -1,11 +1,12 @@
const path = require("path");
const fs = require("fs");
const { app } = require("electron");
// Loader entrypoint:
// - In dev: run the original source (electron/main-src.js)
// - In packaged/prod: run the bundled/minified output (dist-electron/main.cjs)
const distMain = path.join(__dirname, "..", "dist-electron", "main.cjs");
const useDist = !require("electron-is-dev") && fs.existsSync(distMain);
const useDist = app.isPackaged && fs.existsSync(distMain);
require(useDist ? distMain : "./main-src");