Exclude some files from inclusion in packaged app
This adds and extends the default `files` config from electron-builder such that it adds all and only the necessary files to our app.asar. // FREEBIE
This commit is contained in:
parent
28e5c04633
commit
584d29f4a4
1 changed files with 20 additions and 12 deletions
32
package.json
32
package.json
|
@ -47,18 +47,26 @@
|
||||||
},
|
},
|
||||||
"win": {},
|
"win": {},
|
||||||
"files": [
|
"files": [
|
||||||
"main.js",
|
"**/*",
|
||||||
"background.html",
|
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}",
|
||||||
"index.html",
|
"!**/node_modules/.bin",
|
||||||
"options.html",
|
"!**/*.{o,hprof,orig,pyc,pyo,rbc}",
|
||||||
"_locales/**",
|
"!**/._*",
|
||||||
"protos/*",
|
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,thumbs.db,.gitignore,.gitattributes,.editorconfig,.flowconfig,.yarn-metadata.json,.idea,appveyor.yml,.travis.yml,circle.yml,npm-debug.log,.nyc_output,yarn.lock,.yarn-integrity}",
|
||||||
"js/**",
|
"!test",
|
||||||
"!js/register.js",
|
"!pack",
|
||||||
"stylesheets/*.css",
|
"!dist",
|
||||||
"audio/**",
|
"!build",
|
||||||
"images/**",
|
"!components",
|
||||||
"fonts/*"
|
"!bower.json",
|
||||||
|
"!Gruntfile.js",
|
||||||
|
"!README.md",
|
||||||
|
"!CONTRIBUTING.md",
|
||||||
|
"!.sass-cache",
|
||||||
|
"!.tx",
|
||||||
|
"!.github",
|
||||||
|
"!.bowerrc",
|
||||||
|
"!.jscsrc"
|
||||||
],
|
],
|
||||||
"directories": {
|
"directories": {
|
||||||
"output": "pack"
|
"output": "pack"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue