// import path from 'path'; // import { app } from 'electron'; // import { isDev } from './util.js'; // export function getPreloadPath() { // return path.join( // app.getAppPath(), // isDev() ? '.' : '..', // '/dist-electron/preload.cjs' // ); // } // export function getUIPath() { // return path.join(app.getAppPath(), "dist-react", "index.html"); // // return "C:\\Users\\user\\OneDrive\\Desktop\\electron-main\\dist-react\\index.html"; // // return path.join(app.getAppPath(), '/dist-react/index.html'); // } // export function getAssetPath() { // return path.join(app.getAppPath(), isDev() ? '.' : '..', '/src/assets'); // } import path from 'path'; import { app } from 'electron'; import { isDev } from './util.js'; export function getPreloadPath() { return path.join( app.getAppPath(), isDev() ? '.' : '..', '/dist-electron/preload.cjs' // ✅ Changed to .js ); } export function getUIPath() { return path.join(app.getAppPath(), "dist-react", "index.html"); } export function getAssetPath() { return path.join(app.getAppPath(), isDev() ? '.' : '..', '/assets'); } export function getIconPath() { return path.join(getAssetPath(), 'icons', 'appIcon.ico'); } export function getSplashPath() { return path.join(getAssetPath(), 'splash.html'); }