簡體   English   中英

在安裝過程中從Sourceforge自動下載

[英]Automatic download from Sourceforge during installation

我有一個使用平台特定庫的Java項目。 它們非常大,但我可以在安裝程序中弄清楚我需要哪些並下載它們。 我想從Sourceforge下載它們(我的項目的其余部分都存在)。

有沒有辦法從SF自動下載?

如何確保下載使用最佳鏡像?

如果將?use_mirror=autoselect附加到下載路徑(從http://downloads.sourceforge.net/project/開始),SourceForge將發送302 Found響應以將您重定向到最近的鏡像。 例如:

http://downloads.sourceforge.net/project/getgnuwin32/getgnuwin32/0.6.30/GetGnuWin32-0.6.3.exe?use_mirror=autoselect

重定向到以下位置:

http://superb-sea2.dl.sourceforge.net/project/getgnuwin32/getgnuwin32/0.6.30/GetGnuWin32-0.6.3.exe

在下載最新版本方面,您可以解析項目文件的RSS源。

您可以獲取下載頁面(如http://sourceforge.net/projects/cpptest/files/cpptest/cpptest-1.1.0/cpptest-1.1.0.zip/download )並掃描Please use this <a href="http://downloads.sourceforge.net/project/.../...?use_mirror=..." class="direct-download">direct link</a>帶有正則表達式的Please use this <a href="http://downloads.sourceforge.net/project/.../...?use_mirror=..." class="direct-download">direct link</a> 然后你就會為你挑選一面鏡子。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM