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

@@ -6,6 +6,7 @@ const fs = require("fs");
// - In packaged/prod: run the bundled/minified output (dist-electron/preload.cjs)
const distPreload = path.join(__dirname, "..", "dist-electron", "preload.cjs");
const useDist = !require("electron-is-dev") && fs.existsSync(distPreload);
const isDev = process.defaultApp || /[\\/]electron(?:\.exe)?$/i.test(process.execPath);
const useDist = !isDev && fs.existsSync(distPreload);
require(useDist ? distPreload : "./preload-src");