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:
lilia 2017-03-30 15:06:41 -07:00 committed by Scott Nonnenberg
parent 28e5c04633
commit 584d29f4a4
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

@ -47,18 +47,26 @@
},
"win": {},
"files": [
"main.js",
"background.html",
"index.html",
"options.html",
"_locales/**",
"protos/*",
"js/**",
"!js/register.js",
"stylesheets/*.css",
"audio/**",
"images/**",
"fonts/*"
"**/*",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}",
"!**/node_modules/.bin",
"!**/*.{o,hprof,orig,pyc,pyo,rbc}",
"!**/._*",
"!**/{.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}",
"!test",
"!pack",
"!dist",
"!build",
"!components",
"!bower.json",
"!Gruntfile.js",
"!README.md",
"!CONTRIBUTING.md",
"!.sass-cache",
"!.tx",
"!.github",
"!.bowerrc",
"!.jscsrc"
],
"directories": {
"output": "pack"