feat: add Electron app icon

Move the root logo into app assets, wire the Electron main window to use the branded icon, and stamp the packaged Windows executable icon with rcedit.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-23 21:15:40 +01:00
co-authored by Copilot
parent ead9b293dc
commit da72e49f2c
8 changed files with 82 additions and 2 deletions
+7 -1
View File
@@ -1,6 +1,8 @@
import { BrowserWindow, Menu, shell } from 'electron';
import { app, BrowserWindow, Menu, shell } from 'electron';
import { join } from 'node:path';
import { resolveWindowIconPath } from '@main/windows/appIcon';
export function createMainWindow(): BrowserWindow {
Menu.setApplicationMenu(null);
@@ -10,6 +12,10 @@ export function createMainWindow(): BrowserWindow {
minWidth: 1120,
minHeight: 720,
title: 'kopaya',
icon: resolveWindowIconPath({
appPath: app.getAppPath(),
platform: process.platform,
}),
backgroundColor: '#09090b',
titleBarStyle: 'hidden',
titleBarOverlay: {