-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.js
83 lines (79 loc) · 1.78 KB
/
build.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
module.exports = {
appId: "threema-for-desktop",
productName: "Threema For Desktop",
artifactName: "Threema-For-Desktop-setup-${version}.${ext}",
copyright: `Copyright © 2021-${new Date().getFullYear()} GeekCorner`,
directories: {
buildResources: "build-assets",
output: "build-binaries"
},
win: {
target: [{
target: "nsis",
arch: ["x64", "ia32", "arm64"]
},
{
target: "portable",
arch: ["x64", "ia32", "arm64"],
}]
},
nsis: {
oneClick: false,
perMachine: false,
allowElevation: true,
allowToChangeInstallationDirectory: true,
license: "./build-assets/license.txt",
displayLanguageSelector: true,
},
msi: {
artifactName: "Threema-For-Desktop-setup-${version}.${ext}",
createDesktopShortcut: true,
createStartMenuShortcut: true,
shortcutName: "Threema For Desktop"
},
portable: {
artifactName: "Threema-For-Desktop-portable-${arch}-${version}.${ext}",
},
mac: {
target: [{
target: "dmg",
arch: ["universal"],
}],
category: "public.app-category.social-networking"
},
dmg: {
artifactName: "Threema-For-Desktop-mac-universal-${version}.${ext}",
contents: [
{
x: 370,
y: 450
},
{
x: 666,
y: 450,
type: "link",
path: "/Applications"
}
],
window: {
height: 785,
width:1080
}
},
linux: {
target: ["AppImage"],
maintainer: "GeekCorner",
vendor: "GeekCorner",
synopsis: "Threema For Desktop",
description: "Threema For Desktop",
category: "Office"
},
appImage: {
artifactName: "Threema-For-Desktop-linux-${version}.${ext}",
},
compression: "maximum",
files: [
"!{docs,.github,build-binaries,src,CONTRIBUTORS.MD,.all-contributorsrc,.eslintignore,.eslintrc.json,.gitignore,.nvmrc,.travis.yml,build.js,tsconfig.json,yarn.lock,package-log.json,pnpm-lock.yaml}"
],
asar: true
}