-
Notifications
You must be signed in to change notification settings - Fork 51
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
feat(*): delete archieve after uncompressing it #131
Conversation
The tarball is not deleted so that the |
@ayushmanchhabra , what do you think if we add an environment variable NWJS_KEEP_TARBALL (default value is false) for npm-installer |
That works! I suggest NWJS_CACHE with a default value of false since linux builds are compressed as tarballs while Mac and Windows as zips. |
@ayushmanchhabra , what do you think if we do some refactoring here? nwCache in npm-installer has description we could call env variable NWJS_KEEP_COMPRESSED_FILE then. But lets firstly understand cases we try to support If I understand correctly
Could you please explain how #131 (comment) works exactly? |
@ayushmanchhabra may I ask you to look at my comment? Thank you! |
Apologies for the late response! Forgot to add myself as reviewer and hence PR got lost in the notifications.
Sounds good!
/path/to/cache/nwjs-sdk-v0.85.0-linux-x64.tar.gz
/path/to/cache/nwjs-sdk-v0.85.0-win-ia32.zip To use await nwbuild({
version: '0.85.0',
cacheDir: './node_modules/nw',
srcDir: './src',
outDir: './out/desktop',
glob: false
}); The plan is to move |
c358d05
to
0e916a4
Compare
Thank you for the response. |
I think now I understand. |
Exactly. |
Ok, Thank you! |
@stepancar ping |
@ayushmanchhabra , hello, I think I will work on it on friday, thanks for the ping |
Closing since the codebase has changed a lot post this PR. Feel free to submit another one |
Ideally we should not store archive after uncompressing it.
This is important for systems which run nwjs in docker environment.
This change reduces package size by 20%