Skip to content

Commit

Permalink
Fix icon for nix systems
Browse files Browse the repository at this point in the history
  • Loading branch information
OiYouYeahYou committed Nov 9, 2024
1 parent ca38f9f commit 60f2709
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 60f2709

Please sign in to comment.