-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforge.config.js
37 lines (34 loc) · 1.05 KB
/
forge.config.js
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
const { version } = require("./package.json")
module.exports = {
packagerConfig: {
name: "Mod Us",
icon: "./resources/icon.ico",
ignore: path => {
if (path === "") return false
const p = path.slice(1)
if (
p.startsWith("node_modules") &&
!p.startsWith("node_modules/.bin") &&
!p.startsWith("node_modules/electron/") &&
!p.startsWith("node_modules/electron-prebuilt-compile/") &&
!p.startsWith("node_modules/electron-prebuilt/")
) return false
return !(p.startsWith("dist") || p.startsWith("LICENSE") || p.startsWith("package.json"))
}
},
makers: [
{
name: "@electron-forge/maker-zip",
platforms: ["win32"]
},
{
name: "@electron-forge/maker-squirrel",
config: {
setupExe: `AmongUsModManagerInstaller-${version}.exe`,
setupIcon: "./resources/icon.ico",
loadingGif: "./resources/installing.gif",
iconUrl: "https://raw.githubusercontent.com/moritzruth/among-us-mod-manager/main/resources/icon.ico"
}
}
]
}