diff --git a/electron-builder.yml b/electron-builder.yml index 0abca6065..e8b9a04fe 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -15,7 +15,7 @@ win: target: - zip - nsis - icon: assets/icons/icon.png + icon: assets/icons/icon.ico nsis: allowToChangeInstallationDirectory: true diff --git a/src/main/index.ts b/src/main/index.ts index d3b789e75..6f79b60ec 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -273,7 +273,7 @@ async function createWindow(first = true): Promise { autoHideMenuBar: true, frame: false, height: 900, - icon: getAssetPath('icons/icon.png'), + icon: isWindows() ? getAssetPath('icons/icon.ico') : getAssetPath('icons/icon.png'), minHeight: 640, minWidth: 480, show: false,