| 1 | |
| 2 | |
| 3 | |
| 4 | }; |
| 5 | |
| 6 | if (process.platform === 'linux') { |
| 7 | - options.icon = url.fileURLToPath(new URL('icon.png', import.meta.url)); |
| 8 | + options.icon = 'file:///usr/share/icons/hicolor/1024x1024/apps/electron.png'; |
| 9 | } |
| 10 | |
| 11 | mainWindow = new BrowserWindow(options); |
| 12 | |
| 13 | |
| 14 | |
| 15 | ] |
| 16 | |
| 17 | default_app_static_sources = [ |
| 18 | - "default_app/icon.png", |
| 19 | "default_app/index.html", |
| 20 | "default_app/package.json", |
| 21 | "default_app/styles.css", |