forked from stakecube/StakeCubeProtocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforge.config.js
More file actions
56 lines (53 loc) · 1.73 KB
/
forge.config.js
File metadata and controls
56 lines (53 loc) · 1.73 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
// Interactive Forge Configuration
// A flag to use a flat name (e.g: no spaces, caps or symbols) on packagers that require such, like DEB and RPM.
// ... for simplicity, we'll assume anything that is not Windows or MacOS, is Linux.
const fUseFlatName = process.platform !== 'win32' &&
process.platform !== 'darwin';
console.log('\nGenerated Forge Config: (Flat Name: ' + fUseFlatName + ')');
module.exports = {
// Packager Config
"packagerConfig": {
// Package name
"name": fUseFlatName ? "stakecubeprotocol" : "SCP Wallet",
// User-Facing name
"productName": "SCP Wallet",
// Icon Set
"icon": "./public/imgs/scp",
"protocols": [
{
"name": "SCP Wallet",
"schemes": ["scp-wallet"]
}
],
// File & Directories unnecessary in production
"ignore": [
"docs",
".github",
".gitignore",
"linter.js",
".eslintrc.js"
]
},
// Forge Makers
"makers": [
{
// Squirrel.Windows is a no-prompt, no-hassle, no-admin method of installing
// Windows applications and is therefore the most user friendly you can get.
"name": "@electron-forge/maker-squirrel",
"config": {
"setupExe": "SCP Installer.exe",
"loadingGif": "public/imgs/spinner.gif",
"iconUrl": "https://raw.githubusercontent.com/stakecube/StakeCubeProtocol/main/public/imgs/scp.ico",
"setupIcon": "public/imgs/scp.ico"
}
},
{
// The Zip target builds basic .zip files containing your packaged application.
// There are no platform specific dependencies for using this maker and it will run on any platform.
"name": "@electron-forge/maker-zip",
"platforms": [
"darwin"
]
}
]
};