-
Notifications
You must be signed in to change notification settings - Fork 36
/
forge.config.cjs
69 lines (67 loc) · 2.29 KB
/
forge.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
const { MakerDeb } = require("@electron-forge/maker-deb");
const { MakerRpm } = require("@electron-forge/maker-rpm");
const { MakerFlatpak } = require("@electron-forge/maker-flatpak");
const { MakerSquirrel } = require("@electron-forge/maker-squirrel");
const { VitePlugin } = require("@electron-forge/plugin-vite");
const config = {
packagerConfig: {
asar: false, // Cannot enable asar, it breaks map parsing
},
rebuildConfig: {},
makers: [
new MakerSquirrel({
authors: "BAR Team",
description: "Beyond All Reason Lobby",
}),
new MakerRpm({
options: {
mimeType: ["application/sdfz"],
categories: ["Game"],
icon: "src/renderer/assets/images/icon.png",
homepage: "https://www.beyondallreason.info/",
license: "MIT",
name: "bar-lobby",
productName: "BAR Lobby",
},
}),
new MakerDeb({}),
new MakerFlatpak({}),
],
plugins: [
new VitePlugin({
build: [
{
entry: "src/main/main.ts",
config: "vite.main.config.mts",
target: "main",
},
{
entry: "src/preload/preload.ts",
config: "vite.preload.config.mts",
target: "preload",
},
],
renderer: [
{
name: "main_window",
config: "vite.renderer.config.mts",
},
],
}),
// {
// name: "@electron-forge/plugin-auto-unpack-natives",
// config: {},
// },
// Uncomment and configure fuses if needed:
// new FusesPlugin({
// version: FuseVersion.V1,
// [FuseV1Options.RunAsNode]: false,
// [FuseV1Options.EnableCookieEncryption]: true,
// [FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
// [FuseV1Options.EnableNodeCliInspectArguments]: false,
// [FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
// [FuseV1Options.OnlyLoadAppFromAsar]: true,
// }),
],
};
module.exports = config;