forked from altair-graphql/altair
-
Notifications
You must be signed in to change notification settings - Fork 0
/
forge.config.js
59 lines (59 loc) · 1.39 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
module.exports = {
make_targets: {
win32: [
'squirrel'
],
darwin: [
'zip'
],
linux: [
'deb',
'rpm'
]
},
electronPackagerConfig: {
asar: true,
quiet: true,
protocol: 'altair://',
protocolName: 'Altair GraphQL Client File',
icon: './electron/icon',
prune: true,
// "ignore": [
// "idea",
// "bin",
// "chrome-ext-files",
// "docs",
// "e2e",
// "src"
// ],
ignore: (path) => {
const tests = [
// Ignore git directory
() => /^\/\.git\/.*/g,
// Ignore idea directory
() => /^\/\.idea\/.*/g,
// Ignore root dev FileDescription
() => /^\/(bin|chrome-ext-files|docs|e2e|src|test|.cert.pfx|.editorconfig|.eslintignore|.eslintrc|.gitignore|.travis.yml|appveyor.yml|circle.yml|CONTRIBUTING.md|Gruntfile.js|gulpfile.js|ISSUE_TEMPLATE.md|LICENSE|README.md)(\/|$)/g, // eslint-disable-line
];
for (let i = 0; i < tests.length; i++) {
if (tests[i]().test(path)) {
return true;
}
}
return false;
},
},
electronWinstallerConfig: {
name: 'Altair',
setupIcon: './electron/icon.ico'
},
electronInstallerDebian: {},
electronInstallerRedhat: {},
github_repository: {
owner: 'imolorhe',
name: 'altair'
},
windowsStoreConfig: {
packageName: 'Altair GraphQL Client'
}
};