add icon hopefully
This commit is contained in:
parent
abbe90760c
commit
73d2ac9b45
|
|
@ -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({
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 7.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue