-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathforge.config.js
69 lines (60 loc) · 1.25 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
const path = require('path');
const os = require('os');
let iconFile;
let platform = os.platform();
const iconFileWindows = path.resolve(__dirname, "src/icons/win/icon.ico");
const installerGifWindows = path.resolve(__dirname, "src/icons/win/installerGif.gif");
const iconFileMac = path.resolve(__dirname, "src/icons/mac/icon.icns");
if (platform === 'darwin') {
iconFile = iconFileMac;
}
else if (platform === 'win32') {
iconFile = iconFileWindows;
}
module.exports = {
make_targets: {
win32: [
"squirrel"
],
darwin: [
"zip", "dmg"
],
linux: [
"deb",
"rpm"
]
},
publishTargets: {
"win32": [
"github"
],
"darwin": [
"github"
],
"linux": [
"github"
]
},
electronPackagerConfig: {
packageManager: "npm",
appCopyright: "Copyright (c) 2016, MIT",
icon: iconFile
},
electronWinstallerConfig: {
"name": "ScratchJr",
loadingGif: installerGifWindows,
iconUrl: iconFileWindows,
exe: 'ScratchJr.exe',
setupIcon: iconFileWindows
},
electronInstallerDebian: {},
electronInstallerRedhat: {},
github_repository: {
"owner": "jfo8000",
"name": "ScratchJr-Desktop"
},
windowsStoreConfig: {
"packageName": "",
"name": "ScratchJr"
}
}