add icon hopefully

This commit is contained in:
Quinten Kock 2025-11-11 15:21:53 +01:00
parent abbe90760c
commit 73d2ac9b45
5 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,7 @@ import { MakerSquirrel } from "@electron-forge/maker-squirrel";
import { MakerZIP } from "@electron-forge/maker-zip"; import { MakerZIP } from "@electron-forge/maker-zip";
import { MakerDeb } from "@electron-forge/maker-deb"; import { MakerDeb } from "@electron-forge/maker-deb";
import { MakerRpm } from "@electron-forge/maker-rpm"; import { MakerRpm } from "@electron-forge/maker-rpm";
import { MakerFlatpak } from "@electron-forge/maker-flatpak";
import { VitePlugin } from "@electron-forge/plugin-vite"; import { VitePlugin } from "@electron-forge/plugin-vite";
import { FusesPlugin } from "@electron-forge/plugin-fuses"; import { FusesPlugin } from "@electron-forge/plugin-fuses";
import { FuseV1Options, FuseVersion } from "@electron/fuses"; import { FuseV1Options, FuseVersion } from "@electron/fuses";
@ -10,13 +11,15 @@ import { FuseV1Options, FuseVersion } from "@electron/fuses";
const config: ForgeConfig = { const config: ForgeConfig = {
packagerConfig: { packagerConfig: {
asar: true, asar: true,
icon: "res/icon",
extraResource: "res",
}, },
rebuildConfig: {}, rebuildConfig: {},
makers: [ makers: [
new MakerSquirrel({}), new MakerSquirrel({}),
new MakerZIP({}), new MakerZIP({}),
// new MakerRpm({}), new MakerRpm({ options: { icon: "res/icon.png" } }),
// new MakerDeb({}), new MakerDeb({ options: { icon: "res/icon.png" } }),
], ],
plugins: [ plugins: [
new VitePlugin({ new VitePlugin({

BIN
res/icon.icns Normal file

Binary file not shown.

BIN
res/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

BIN
res/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -24,6 +24,7 @@ const createWindow = () => {
webPreferences: { webPreferences: {
preload: path.join(__dirname, "preload.js"), preload: path.join(__dirname, "preload.js"),
}, },
icon: "./res/icon.png",
}); });
// and load the index.html of the app. // and load the index.html of the app.