创建一个分发文件,以便在 github 上使用 wget 下载 - 不需要 git
我希望用户能够发出类似的问题:
wget https://nodeload.github.com/opensas/play-demo/zipball/master/opensas-play-demo-bb3a405.zip,
无需克隆整个repo,也不是浏览 github 来手动下载它
,显然,github 在访问时会发出某种重定向:
https://nodeload.github.com/opensas/play-demo/zipball/master
它只是下载一些二进制文件......
有没有一些简单的方法来实现它???
I'd like users to be able to issue something like:
wget https://nodeload.github.com/opensas/play-demo/zipball/master/opensas-play-demo-bb3a405.zip
without having to clone the whole repo, nor browsing to github to manually download it
apparently, github issues some kind of redirect when accessing:
https://nodeload.github.com/opensas/play-demo/zipball/master
and it just downloads some binary file instead...
is there some easy way to achieve it???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚找到了 asnwer,
我制作了一个分发 zip 文件,
并使用“添加新下载”选项上传了它
,现在我有以下 url 来获取它:
https://github.com/downloads/opensas/play-demo/play-demo-at-jugar-2011_09_29.zip
I've just found the asnwer
I made a distribution zip file
Uploaded it with "add new download" option
and now I have the following url to get it:
https://github.com/downloads/opensas/play-demo/play-demo-at-jugar-2011_09_29.zip