目录
先上地址后讲原理:
原理:
11个目录的文件怎么一口气下载呢?
最后,把下好的文件批量名,同时将GitHub.exe.manifest也放到软件根目录下(与GitHub.exe同级):
今后的猜想:
今天下载github for windows,被GR的GFW断了好2次,【目标地址是54.231.8.177,美国华盛顿州西雅图市亚马逊公司数据中心】,果断怒了,拖拖的把它给办了。。。
Github第一层目录下的文件下载地址【直接迅雷复制粘贴下吧,BTY,国内的迅雷果然够流氓】:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/7za.exe.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Akavache.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Akavache.Sqlite3.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Caliburn.Micro.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/CefSharp.BrowserSubprocess.Core.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/CefSharp.BrowserSubprocess.exe.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/CefSharp.Core.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/CefSharp.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/CefSharp.Wpf.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/d3dcompiler_47.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/GitHub.Core.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/GitHub.exe.config.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/GitHub.exe.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/GitHub.PortableGit.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/GitHub.UI.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/gitignore.7z.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Gitpad.exe.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ICSharpCode.AvalonEdit.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ICSharpCode.NRefactory.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/icudtl.dat.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/lfs-amd64.7z.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/lfs-x86.7z.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/libcef.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/libEGL.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/LibGit2Sharp.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/libGLESv2.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Microsoft.Expression.Effects.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Microsoft.Expression.Interactions.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Microsoft.WindowsAPICodePack.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Microsoft.WindowsAPICodePack.Shell.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Newtonsoft.Json.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/NLog.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Octokit.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Octokit.Reactive.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/PortableGit.7z.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/posh-git.7z.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ReactiveUI.Events.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ReactiveUI.Routing_Net45.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ReactiveUI.Xaml_Net45.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ReactiveUI_Net45.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Splat.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/SQLitePCL.raw.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/System.Interactive.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/System.Reactive.Core.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/System.Reactive.Interfaces.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/System.Reactive.Linq.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/System.Reactive.PlatformServices.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/System.Reactive.Windows.Threading.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/System.Windows.Interactivity.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/tutorial.7z.deploy
下面的地址就要分子目录了,因为下载好的目录结构是这样的:
当然如果你不怕累,11个目录你可以一个一个的下【要么等等看后面】:
1.de目录:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/de/Microsoft.Expression.Interactions.resources.dll.deploy
2.en目录:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/en/Microsoft.Expression.Interactions.resources.dll.deploy
3.es目录:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/es/Microsoft.Expression.Effects.resources.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/es/Microsoft.Expression.Interactions.resources.dll.deploy
4.fr目录:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/fr/Microsoft.Expression.Effects.resources.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/fr/Microsoft.Expression.Interactions.resources.dll.deploy
5.images目录:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/Images/App.ico.deploy
6.it目录:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/it/Microsoft.Expression.Effects.resources.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/it/Microsoft.Expression.Interactions.resources.dll.deploy
7.ja:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ja/Microsoft.Expression.Effects.resources.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ja/Microsoft.Expression.Interactions.resources.dll.deploy
8.ko:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ko/Microsoft.Expression.Effects.resources.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ko/Microsoft.Expression.Interactions.resources.dll.deploy
9.ru:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ru/Microsoft.Expression.Effects.resources.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ru/Microsoft.Expression.Interactions.resources.dll.deploy
10. zh-Hans:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/zh-Hans/Microsoft.Expression.Effects.resources.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/zh-Hans/Microsoft.Expression.Effects.resources.dll_2.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/zh-Hans/Microsoft.Expression.Interactions.resources.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/zh-Hans/Microsoft.Expression.Interactions.resources.dll_2.deploy
11. zh-Hant:
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/zh-Hant/Microsoft.Expression.Effects.resources.dll.deploy
http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/zh-Hant/Microsoft.Expression.Interactions.resources.dll.deploy
原理:
点开详细信息瞄一眼:
很明显缺GitHub.exe.manifest,而且要的文件列表因该就在这个东东里,并且要把GitHub.exe.manifest放到相对GitHub.application文件的Application Files\GitHub_3_0_11_0\目录下。
两点不同:
看到几个熟悉的东西,我们排个序,(Editplus ,Tools –> Sort ->[Sort]),找到几个有用的片段:
原理—END
可悲的Windows啊,还好我懂写Linux,想当年写网络爬虫,wget怎么能少,它有个参数 –x ,可以按Server端的目录结构将整个网站"克隆"到本地。网上搜了一下,居然还有人写了一个VisualWget,好吧,有兴趣了解wget的请自行参考http://www.cnblogs.com/Chary/p/No00006B.html,我就直接上Bat文件了:
@echo off rem Wget executable must be either a) in PATH, or b) in the same directory as this batch file. wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/de/Microsoft.Expression.Interactions.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/en/Microsoft.Expression.Interactions.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/es/Microsoft.Expression.Effects.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/es/Microsoft.Expression.Interactions.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/fr/Microsoft.Expression.Effects.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/fr/Microsoft.Expression.Interactions.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/Images/App.ico.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/it/Microsoft.Expression.Effects.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/it/Microsoft.Expression.Interactions.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/ja/Microsoft.Expression.Effects.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/ja/Microsoft.Expression.Interactions.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/ko/Microsoft.Expression.Effects.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/ko/Microsoft.Expression.Interactions.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/ru/Microsoft.Expression.Effects.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/ru/Microsoft.Expression.Interactions.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/zh-Hans/Microsoft.Expression.Effects.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/zh-Hans/Microsoft.Expression.Effects.resources.dll_2.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/zh-Hans/Microsoft.Expression.Interactions.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/zh-Hans/Microsoft.Expression.Interactions.resources.dll_2.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/zh-Hant/Microsoft.Expression.Effects.resources.dll.deploy" wget --continue --directory-prefix="D:\\" --force-directories --timestamping "http://github-windows.s3.amazonaws.com/Application%%20Files/GitHub_3_0_11_0/zh-Hant/Microsoft.Expression.Interactions.resources.dll.deploy" pause
注意的是:bat中不能有中文,保存格式为ANSI,还有就是参数里不能有"空格",【注意刚下载时"空格"被转意为"%20"】了吗?不过在bat中还要注意,"%%"才代表一个"%",所以"Application Files"变成了"Application%%20Files"。
由于下载下来的文件全是带. Deploy后缀的,所以给个工具批量替换,详见地址http://www.cnblogs.com/Chary/p/No00006C.html
--END
一般情况下,程序的目录、结构都不会再变了,变的只是版本号,所以以后只要将上面下载连接中的"GitHub_3_0_11_0"字符串更新为新的版本号,接着扔给迅雷/wget Download就行了。
给个附件:[No00006D]下载离线版的github_for_windows【以Github_for_Windows_3.0.110.为例】.7z,好了,上床钻被窝,冷死了。。