简体   繁体   中英

wget or curl to download .app file that has been zipped from github

app file that I have zipped up and pushed to a github project of mine.

Now i want to write a bash script to download this zipped file, however I can't seem wget to work.

I am doing wget

https://github.com/MyProject/myRepo/blob/master/appBuild/myApp.zip?raw=true -O /Users/myName/Desktop/myApp.zip

but I get some corrupted file

On my github repo, I have been using wget to download the main archive. Try this for you:

wget https://github.com/MyProject/myRepo/blob/master/appBuild/myApp.zip -O /Users/myName/Desktop/myApp.zip

I simply removed the "?raw=true" from the link. I haven't used that flag before.

If you can provide me the actual link, I'd be happy to test it for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM