Skip to content
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

Is there a way to download a binary file? #51

Open
ghost opened this issue Sep 4, 2015 · 4 comments
Open

Is there a way to download a binary file? #51

ghost opened this issue Sep 4, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 4, 2015

For example, I'd like to use napa to download a binary: https://github.com/kreuzwerker/envplate/releases/download/v0.0.8/ep-linux

Is it possible to do this? If not, I think it would be a nice feature to be able to download single files with napa.

@shama
Copy link
Owner

shama commented Sep 7, 2015

Currently it only handles packages. Where would the binary be installed to?

@ghost
Copy link
Author

ghost commented Sep 7, 2015

What feels intuitive to me for this functionality would be for any URL that didn't resolve to an archive file, create a directory in node_modules with the name from package.json and put the file in there.

For example in my project I then copy that bin into a docker container in its /usr/bin. If I could depend on an arbitrary URL I can completely avoid installing curl, updating apt-get etc in the container.

@iambumblehead
Copy link

I'm trying to include this file as part of my install, but napa is not retrieving it correctly,

https://github.com/away3d/away3d-core-fp11/releases/download/v4.1.6/away3d-core-fp11_4_1_6.swc

@tuananh
Copy link

tuananh commented Sep 16, 2019

this would be quite straight forward to implement right? would a pr be accepted ?

edit: looks like #85 is already open. @shama can you take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants