下载 CodePlex 项目的最新版本
我正在为另一个软件编写更新程序。该更新程序下载/安装该程序扩展的更新(事实上,我的更新程序只是另一个扩展)。
其中一些扩展是 CodePlex 项目。其他的只是在人们的个人网站或他们公司的网站上等等......重点是,没有中央扩展存储库。
我在下载 CodePlex 上托管的更新时遇到问题,因为我似乎无法找到返回/下载最新版本的 URL。例如,在此页面上有一个大的绿色“下载”按钮。我想要的只是,对于任何给定的 CodePlex 项目,我可以点击一个 URL,下载最新版本(就像愚蠢的提示后的“下载”按钮一样)。
我为此创建了一个 CodePlex 功能请求,但它尚未更新,其他也没有更新人们对该网站提出了数百个请求。
总之,我想要这样的东西:
http://coolestProjectEver.codeplex.com/download
此链接将返回/下载该项目的最新版本,没有任何问题/提示。
有什么想法我可以做什么吗?
I'm writing an update program for another piece of software. This update program downloads/installs updates to this program's extensions (my update program is, in fact, just another extension).
Some of these extensions are CodePlex projects. Other's are just on people's personal websites or on their company's website, etc... Point is, there's no central extension repository.
I'm having trouble downloading the updates that are hosted on CodePlex because I cannot seem to just find URL that returns/downloads the latest version. E.g. on this page there is the big, green "Download" button. All I want is, for any given CodePlex project, a URL I can hit that will download the latest version (like that Download button does after the stupid prompt).
I created a CodePlex feature request for this, but it hasn't been updated and neither have the other hundreds of requests people have had for that site.
In summary, I want something like this:
http://coolestProjectEver.codeplex.com/download
This link would return/download the latest version of that project without any questions/prompts.
Any ideas what I can do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能有帮助的一件事是,有一个指向最新源的永久链接:
http://[project].codeplex.com/releases
。这也可能有帮助:从源代码读取最新版本< /a>
您可以只读取一个您知道已经存在的包含版本号的文件。 Visual Studio 将其保留在项目或解决方案文件中。
对于 Mercurial 的参考,您只需访问
https://hg.codeplex.com/[project]/raw-file/tip/
并开始构建所需文件的路径。只是希望它不是一个 .vb 文件,因为这似乎不起作用。UDPATE:
基于此处找到的评论 http://codeplex.codeplex.com/workitem/25464我能够检索特定文件的最新版本。目标项目中的哪个文件包含版本号,您可以在此处查看。添加一些正则表达式,你应该可以开始了。
格式为:
http://[project].codeplex.com/SourceControl/BrowseLatest#[PathToFile]
One thing that might help is that there is a permanent link to the latest source:
http://[project].codeplex.com/releases
.This might also help: Read Latest Version From Source
You could just have that read a file that you know is already there containing the version number. Visual Studio keeps this in the project or solution files.
For your references with Mercurial you can just go to
https://hg.codeplex.com/[project]/raw-file/tip/
and start building the path to the file you want. Just hope it isn't a .vb file as that doesn't seem to work.UDPATE:
Based on the comments found here http://codeplex.codeplex.com/workitem/25464 I was able to retrieve the latest version of a specific file. Which ever file in your target project contains the version number you can see it here. Add in a little regex and you should be good to go.
The format is:
http://[project].codeplex.com/SourceControl/BrowseLatest#[PathToFile]
就像上面讨论的那样,只有 CodePlex 改变它的实现,才很难达到你想要的效果。不要进行黑客攻击,因为他们可能会在另一天升级他们的网站并破坏您的黑客攻击。
考虑将二进制文件托管在单独的站点中(也许在 Google Code 上创建一个备份站点,其中下载页面 (http://code.google.com/p/lextudio/downloads/list) 不会提示。
Like discussed above, only if CodePlex changes its implementation, it will be too hard to achieve what you want. Don't hack, as they may upgrade their site just another day and break your hack.
Consider hosting the binaries in a separate site (maybe create a backup site on Google Code, where the Download page (http://code.google.com/p/lextudio/downloads/list) does not prompt.