-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.js
More file actions
57 lines (55 loc) · 1.63 KB
/
Copy pathbuild.js
File metadata and controls
57 lines (55 loc) · 1.63 KB
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
const builder = require('electron-builder');
const { productname } = require('./package.json');
builder.build({
config: {
publish: [
{
provider: "github",
owner: "1ly4s0",
repo: "battly4hytale",
releaseType: "release"
}
],
generateUpdatesFilesForAllChannels: true,
appId: productname,
productName: productname,
artifactName: '${productName}-${os}-${arch}.${ext}',
files: ["src/**/*", "package.json", "LICENSE.md", "README.md", "CONTRIBUTING.md", "jre.json", "config.json"],
directories: { "output": "dist" },
compression: 'maximum',
asar: true,
mac: {
icon: "src/assets/images/logo/256x256.icns",
category: "public.app-category.games",
target: [{
target: "dmg",
arch: ["x64", "arm64"]
}]
},
linux: {
icon: "src/assets/images/logo/256x256.png",
target: [
{
target: "AppImage",
arch: ["x64"]
},
{
target: "tar.gz",
arch: ["x64"]
},
{
target: "deb",
arch: ["x64"]
},
{
target: "rpm",
arch: ["x64"]
},
]
}
}
}).then(() => {
console.log('✅ El build se ha realizado correctamente.')
}).catch(err => {
console.error('Error al realizar el build', err)
});