-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Executable size is big - idea(s) for reducing size. #42
Comments
From https://github.com/irelance/node-pkgx/:
Not happening anytime soon... The reason for such a big size is that the binary has to include a node runtime. |
Yes I know it needs a runtime. When you build, with pkg, do you compress it?
|
Compression is not enabled right now, but unfortunately the binary includes a node runtime which isn't very compressable. The gains might be minimal. Anyways, I might enable it in a future release after some testing. |
caxa seems like a good candidate for packaging. It also supports |
Excelent, I'll look into it |
Well, caxa doesn't seem like such a good fit anymore: $ yarn caxa -- --input . --output d-fi_caxa -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/dist/src/d-fi.js"
$ ls -lh d-fi_caxa
-rwxr-xr-x 1 namkhai namkhai 126M Apr 2 13:12 d-fi_caxa
$ ls -lh build/d-fi
-rwxr-xr-x 1 namkhai namkhai 46M Mar 30 11:59 build/d-fi Other issues are
Using |
Hi.
The extracted exe is about 75mb, which is big.
I tried using UPX directly to compress the exe, but it does not work for d-fi "Pkg: Error reading from file.", and the issues is unlikely to be fixed soon on the upx side.
Maybe you can compress the exe while compiling it with pkgx ? As a complete node & typescript rookie, I was unable to get it working in a few minutes.
Maybe you can get pkgx working to compress the exe during the compile stage.
The text was updated successfully, but these errors were encountered: