forked from alxlchnr/electron-desktop-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
55 lines (55 loc) · 1.93 KB
/
package.json
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
{
"name": "electron-boilerplate",
"version": "1.2.20",
"main": "main.js",
"description": "electron boilerplate forked",
"author": "geyuqiu",
"devDependencies": {
"concurrently": "^3.5.0",
"electron": "1.6.14",
"electron-builder": "^19.34.1"
},
"dependencies": {
"electron-log": "^2.2.9",
"electron-updater": "^2.18.2"
},
"build": {
"appId": "your.app.id",
"publish": [
{
"provider": "github",
"owner": "geyuqiu",
"repo": "deployElectronSubmodule"
}
],
"mac": {
"category": "your.app.category.type",
"target": "dmg"
},
"win": {
"target": "nsis",
"verifyUpdateCodeSignature": false
}
},
"scripts": {
"preinstall": "cd filebrowser && npm install && cd ..",
"postinstall": "electron-builder install-app-deps",
"//": [
"'-m' builds mac installers",
"'-w' builds windows installers",
"'--x64' builds installers only for x64 systems",
"'npm run release' script triggers automatic publishing of installers via electron-builder.",
"Your specified github repo will be the target. (GH_TOKEN env var needs to be specified)",
"Build results will be stored locally in the 'dist' folder.",
"Build results will be stored locally in the 'dist' folder."
],
"start": "concurrently \"npm run start-electron\" \"npm run start-app\"",
"start-app": "npm run --prefix filebrowser build-dev",
"start-electron": "electron .",
"prebuild": "rm -f dist/*.exe && rm -f dist/*.blockmap && rm -f dist/latest.yml && npm run --prefix filebrowser build",
"build": "npm run prebuild && build -w --x64 && cd dist && ./changeDashToDot.sh && ./gitPush.sh 'update latest.yml and version in package.json' && cd .. && npm run releaseSubmodule",
"releaseSubmodule": "npm run --prefix dist release",
"release": "npm run prebuild && build -w --x64",
"test": "npm run --prefix filebrowser test"
}
}