This commit is contained in:
oobabooga
2026-05-18 06:10:25 -07:00
parent fa57f838b2
commit 96670299ef
3 changed files with 6 additions and 0 deletions

BIN
css/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -42,6 +42,10 @@ function resolveUserDataDir() {
}
const stateFile = path.join(resolveUserDataDir(), "cache", "window-state.json");
// css/ sits next to main.js in portable builds, one level up in dev.
const portableIcon = path.join(baseDir, "css", "icon.png");
const iconPath = fs.existsSync(portableIcon) ? portableIcon : path.join(baseDir, "..", "css", "icon.png");
let serverProcess = null;
let mainWindow = null;
let portCheckInterval = null;
@@ -110,6 +114,7 @@ function createWindow(port) {
mainWindow = new BrowserWindow({
...bounds,
title: TITLE,
icon: iconPath,
autoHideMenuBar: true,
webPreferences: {
preload: path.join(__dirname, "preload.js"),

View File

@@ -242,6 +242,7 @@ def create_interface():
ssl_certfile=shared.args.ssl_certfile,
root_path=shared.args.subpath,
allowed_paths=allowed_paths,
favicon_path='css/icon.png',
)