arboleya / electrify

Package your Meteor apps with Electron, and butter
MIT License
247 stars 52 forks source link

App size #29

Closed sangyoo91 closed 8 years ago

sangyoo91 commented 8 years ago

My basic app is already over 200MB.

Is it normal that apps built with electrify take this much disk space?

arboleya commented 8 years ago

My compiled todo-list app have around 30MB of code/dependencies and 60MB for the binaries -- 198MB in total.

The approach discussed in https://github.com/arboleya/electrify/issues/24 would possibly remove around 100MB from the final build, since there will be no binaries or endless dependencies.

ghost commented 8 years ago

Hi!

I'd like to bump this question up: since upgrade to meteor 1.3 (that uses a lot of npm modules now) my packaged app has grown to almost 400 mb (comparing to 200 on meteor 1.2). File count is up to 27,000 (twenty sevent bloody thousands) comparing to ~7000 on meteor 1.2, some of them exceed windows file path limit. Well, it's kind a frustrating now to wait for 20 minutes (twenty!) to package app. How can I reduce file count? Possible solutions:

PS: from electron-packager readme:

Be careful not to include node_modules you don't want into your final app. electron-packager, electron-prebuilt and .git will be ignored by default. You can use --ignore to ignore files and folders via a regular expression. For example, --ignore=node_modules/package-to-ignore or --ignore="node_modules/(some-package[0-9]*|dev-dependency)".