Change icon on Windows

#windows-build
This commit is contained in:
Jonatan Heyman 2023-01-16 15:53:57 +01:00
parent 3772e02bee
commit b561c0184e
4 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@
} }
], ],
"artifactName": "${productName}_${version}.${ext}", "artifactName": "${productName}_${version}.${ext}",
"icon": "public/favicon.ico" "icon": "public/favicon.png"
}, },
"nsis": { "nsis": {
"oneClick": false, "oneClick": false,

View File

@ -47,7 +47,7 @@ const indexHtml = join(process.env.DIST, 'index.html')
async function createWindow() { async function createWindow() {
win = new BrowserWindow({ win = new BrowserWindow({
title: 'Main window', title: 'Main window',
icon: join(process.env.PUBLIC, 'favicon.ico'), icon: join(process.env.PUBLIC, 'favicon.png'),
//titleBarStyle: 'customButtonsOnHover', //titleBarStyle: 'customButtonsOnHover',
autoHideMenuBar: true, autoHideMenuBar: true,
webPreferences: { webPreferences: {

View File

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" /> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<meta name="color-scheme" content="light dark"> <meta name="color-scheme" content="light dark">

BIN
public/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB