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": {},
|
||||
"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"
|
||||
|
|
Loading…
Reference in a new issue