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
pull/749/head
lilia 8 years ago committed by Scott Nonnenberg
parent 28e5c04633
commit 584d29f4a4
No known key found for this signature in database
GPG Key ID: A4931C09644C654B

@ -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…
Cancel
Save