Fix linux icon

This commit is contained in:
olcxja 2026-05-13 10:08:19 +02:00
commit 3c71ba9b73
12 changed files with 25 additions and 12 deletions

View file

@ -83,7 +83,7 @@ class ElectronCapacitorApp {
async init() {
var _a;
const icon = electron_2.nativeImage.createFromPath((0, path_1.join)(electron_2.app.getAppPath(), 'assets', process.platform === 'win32' ? 'icon.ico' : 'icon.png'));
const appName = "miarven";
const appName = "olcxja.miarven";
electron_2.app.setName(appName);
electron_2.app.setAppUserModelId(appName);
this.mainWindowState = (0, electron_window_state_1.default)({
@ -93,7 +93,7 @@ class ElectronCapacitorApp {
// Setup preload script path and construct our main window.
const preloadPath = (0, path_1.join)(electron_2.app.getAppPath(), 'build', 'src', 'preload.js');
this.MainWindow = new electron_2.BrowserWindow({
icon,
icon: icon,
show: false,
x: this.mainWindowState.x,
y: this.mainWindowState.y,