-
Notifications
You must be signed in to change notification settings - Fork 37
/
electron-builder.config.ts
47 lines (41 loc) · 1.08 KB
/
electron-builder.config.ts
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
import { Configuration } from "electron-builder";
/**
* @see https://www.electron.build/configuration
*/
const config: Configuration = {
appId: "BeyondAllReason",
productName: "Beyond All Reason",
asar: true,
disableDefaultIgnoredFiles: true,
files: ["./.vite/**", "!node_modules", "./node_modules/7zip-bin/**"],
directories: { buildResources: "buildResources" },
asarUnpack: ["resources/**"],
publish: { provider: "github" },
fileAssociations: [
{
ext: "sdfz",
description: "BAR Replay File",
role: "Viewer",
icon: "icon.ico",
name: "SDFZ NAME HERE",
},
],
// Windows
win: {
target: ["nsis"],
},
nsis: {
artifactName: "${productName}-${version}-setup.${ext}",
uninstallDisplayName: "${productName}",
oneClick: true,
perMachine: true,
allowToChangeInstallationDirectory: false,
},
// Linux
linux: {
target: ["AppImage"],
category: "Game",
},
appImage: {},
};
export default config;