forked from brackets-userland/brackets-electron
-
Notifications
You must be signed in to change notification settings - Fork 1
/
electron-builder.ts
80 lines (78 loc) · 2.37 KB
/
electron-builder.ts
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
73
74
75
76
77
78
79
80
import { Configuration } from "electron-builder";
const options: Configuration = {
"appId": "com.squirrel.quadre.Quadre",
"generateUpdatesFilesForAllChannels": true,
"asar": false,
"files": [
"**/*",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}",
"!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
"!**/node_modules/*.d.ts",
"!**/node_modules/.bin",
"!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}",
"!.editorconfig",
"!**/._*",
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}",
"!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}",
"!**/{appveyor.yml,.travis.yml,circle.yml}",
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}",
{
"from": "www/extensions/default/quadre-git/node_modules",
"to": "www/extensions/default/quadre-git/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
},
{
"from": "www/extensions/default/quadre-eslint/node_modules",
"to": "www/extensions/default/quadre-eslint/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
},
{
"from": "www/extensions/default/JavaScriptCodeHints/node_modules",
"to": "www/extensions/default/JavaScriptCodeHints/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
},
{
"from": "www/extensions/default/StaticServer/node/node_modules",
"to": "www/extensions/default/StaticServer/node/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
}
],
"npmRebuild": true,
"directories": {
"buildResources": "build",
"app": "dist",
"output": "dist-build"
},
"win": {
"target": [
"nsis"
]
},
"msi": {
"warningsAsErrors": false
},
"mac": {
"category": "public.app-category.developer-tools"
},
"linux": {
"category": "Utility;TextEditor;Development;IDE;",
"target": [
"AppImage",
"deb",
"rpm"
]
}
};
export default options;