Fix icon for nix systems

This commit is contained in:
Jason 2024-11-09 15:38:17 +00:00
parent ca38f9f932
commit 60f27095e1

View File

@ -106,9 +106,17 @@ async function createWindow() {
}
}
const pngSystems: NodeJS.Platform[] = ["linux", "freebsd", "openbsd", "netbsd"]
const icon = join(
process.env.PUBLIC,
pngSystems.includes(process.platform)
? "favicon-linux.png"
: "favicon.ico",
)
win = new BrowserWindow(Object.assign({
title: 'heynote',
icon: join(process.env.PUBLIC, 'favicon.ico'),
icon,
backgroundColor: nativeTheme.shouldUseDarkColors ? '#262B37' : '#FFFFFF',
//titleBarStyle: 'customButtonsOnHover',
autoHideMenuBar: true,