Repository navigation
Expand file tree
/
Copy pathforge.config.js
More file actions
72 lines (71 loc) · 1.87 KB
/
Copy pathforge.config.js
File metadata and controls
72 lines (71 loc) · 1.87 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Forge doesn't read .env by itself. Load it here (it is gitignored) so GITHUB_TOKEN reaches `publish`.
// Variables already set in the shell win over the file.
try { process.loadEnvFile(require('path').join(__dirname, '.env')); } catch (_) {}
module.exports = {
packagerConfig: {
name: 'Simple Overlay',
executableName: 'simple-overlay',
// Native modules (koffi) can't be loaded from inside the asar archive.
asar: { unpack: '**/*.node' },
icon: './assets/icons/icon',
ignore: (path) => {
const allowed = [
/^$/,
/^[/\\]package\.json$/,
/^[/\\]src([/\\]|$)/,
/^[/\\]assets([/\\]|$)/,
/^[/\\]node_modules([/\\]|$)/,
];
return !allowed.some(r => r.test(path));
},
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
platforms: ['win32'],
config: {
name: 'simple_overlay',
setupIcon: './assets/icons/icon.ico',
},
},
{
name: '@electron-forge/maker-dmg',
platforms: ['darwin'],
config: {
format: 'ULFO',
},
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
},
{
name: '@electron-forge/maker-deb',
platforms: ['linux'],
config: {
options: {
maintainer: 'Spyke',
homepage: 'https://pog-tv.com',
},
},
},
{
name: '@electron-forge/maker-rpm',
platforms: ['linux'],
config: {},
},
],
// `npm run publish:win` builds, then uploads Setup.exe, RELEASES and the .nupkg to a draft
// GitHub release for v<package.json version>. Needs a GITHUB_TOKEN env variable.
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: { owner: 'pog-group', name: 'SimpleOverlay' },
prerelease: false,
draft: true,
},
},
],
};