-
Notifications
You must be signed in to change notification settings - Fork 5
/
builder.config.js
54 lines (45 loc) · 1.06 KB
/
builder.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* eslint-disable @typescript-eslint/no-var-requires */
const LinuxTarget = require("./builder/linux");
const WindowsTarget = require("./builder/windows");
const config = {
asar: true,
productName: "Amadeus",
appId: "com.purplehorrorrus.amadeus",
// eslint-disable-next-line no-template-curly-in-string
artifactName: "amadeus-${version}.${ext}",
directories: {
output: "build",
buildResources: "build/resources"
}
};
const files = [
"package.json",
{
from: "dist/main",
to: "dist/main/"
},
{
from: "dist/renderer",
to: "dist/renderer/"
}
];
const extraResources = [
{
from: `./build/icons/${process.platform}`,
to: `../build/icons/${process.platform}`
}
];
module.exports = {
...config,
...new WindowsTarget().config,
...new LinuxTarget().config,
files,
extraResources,
publish: {
provider: "github",
owner: "PurpleHorrorRus",
repo: "Amadeus",
releaseType: "prerelease",
private: false
}
};