forked from adenvt/recta-host
-
Notifications
You must be signed in to change notification settings - Fork 0
/
forge.config.js
81 lines (80 loc) · 2.1 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
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
const path = require('path')
const { version } = require('./package.json')
const { platform, arch } = process
module.exports = {
make_targets: {
win32: [
'squirrel',
'zip',
],
darwin: [
'zip',
],
linux: [
'deb',
'rpm',
'zip',
],
},
electronPackagerConfig: {
asar : true,
ignore: [
'^/\\.',
'^/[\\w\\.]+\\.log$',
'^/yarn',
'^/node_modules/uws',
'^/node_modules/\\.cache',
'^/test',
'^/appveyor\\.yml',
],
appCopyright : 'Copyright (C) 2017 Ade Novid.',
icon : 'src/img/icons/win/icon.ico',
win32metadata: {
CompanyName : 'Recta',
FileDescription : 'Recta Host',
InternalName : 'Recta Host',
ProductName : 'Recta Host',
OriginalFilename: 'recta-host.exe',
},
download: {
cache: 'node_modules/.cache/electron',
},
},
electronWinstallerConfig: {
name : `recta-host-${platform}-${arch}`,
iconUrl : 'https://raw.githubusercontent.com/adenvt/recta-host/develop/src/img/icons/win/icon.ico',
setupIcon : 'src/img/icons/win/icon.ico',
setupExe : `recta-host-${platform}-${arch}-${version}-setup.exe`,
loadingGif: 'src/img/animation/loading.gif',
},
electronInstallerDebian: {
icon: {
'48x48' : 'src/img/icons/png/48x48.png',
'64x64' : 'src/img/icons/png/64x64.png',
'128x128': 'src/img/icons/png/128x128.png',
'256x256': 'src/img/icons/png/256x256.png',
},
rename (dest, src) {
return path.join(dest, `recta-host-${platform}-${arch}-${version}.deb`)
},
},
electronInstallerRedhat: {
icon: {
'48x48' : 'src/img/icons/png/48x48.png',
'64x64' : 'src/img/icons/png/64x64.png',
'128x128': 'src/img/icons/png/128x128.png',
'256x256': 'src/img/icons/png/256x256.png',
},
rename (dest, src) {
return path.join(dest, `recta-host-${platform}-${arch}-${version}.rpm`)
},
},
github_repository: {
owner: 'adenvt',
name : 'recta-host',
},
windowsStoreConfig: {
packageName: '',
name : 'rectahost',
},
}