()
| 49 | |
| 50 | // Function to get the preload script path |
| 51 | function getPreloadPath() { |
| 52 | return app.isPackaged |
| 53 | ? path.join(__dirname, 'preload.js') // Already in dist folder in production |
| 54 | : path.join(__dirname, 'preload.js'); |
| 55 | } |
| 56 | |
| 57 | // Path to the xray config file |
| 58 | const xrayConfigPath = path.join(getResourcePath('core'), 'xray'); |