[No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】

目录

先上地址后讲原理:

原理:

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

下面的地址就要分子目录了,因为下载好的目录结构是这样的:

[No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】_第1张图片

当然如果你不怕累,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

原理:

  1. 从github 官网上只能下到660k的GitHubSetup.exe文件,这玩意就是一个部署文件。于是乎找它的application文件,看图的地址:http://github-windows.s3.amazonaws.com/GitHub.application

[No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】_第2张图片 [No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】_第3张图片

  1. 直接双击运行一下GitHub.application,报了个错:

[No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】_第4张图片

点开详细信息瞄一眼:

[No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】_第5张图片

很明显缺GitHub.exe.manifest,而且要的文件列表因该就在这个东东里,并且要把GitHub.exe.manifest放到相对GitHub.application文件的Application Files\GitHub_3_0_11_0\目录下。

  1. 用编辑器(eg.记事本)打开下载下来的GitHub.application,OH,shi一样的东西。。。忽略细节看重点:

    [No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】_第6张图片

    1. 现在的版本号是version="3.0.11.0"
    2. GitHub.exe.manifest的下载地址:http://github-windows.s3.amazonaws.com/Application Files\GitHub_3_0_11_0\GitHub.exe.manifest
    3. 【很明显,上面的地址里有/还有\,这是Window遗留的路径问题,正确的因为http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/ GitHub.exe.manifest,不过浏览器会为我们修正。。。】

    [No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】_第7张图片

  2. 下载好GitHub.exe.manifest后,放到Application Files\GitHub_3_0_11_0\目录下,再次运行GitHub.exe.manifest,YEAR,安装界面粗来了,不过紧接着又报了个错,不过这次报的错不一样了。。。【看,这是重点!!】

    两点不同:

    1. 引发报错的文件变成了App.ico.deploy;
    2. 这个文件后面带一个.deploy后缀;
  3. 编辑器打开GitHub.exe.manifest,OH,又是shi一样的东西。。。忽略细节看重点:

[No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】_第8张图片

看到几个熟悉的东西,我们排个序,(Editplus ,Tools –> Sort ->[Sort]),找到几个有用的片段:

[No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】_第9张图片

[No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】_第10张图片

  1. 于是乎,这些文件肯定都在http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_11_0/目录下。不过这里要注意,每个文件的后缀都加了一个.deploy,下载好之后在批量替换回原文件名呗。【给个工具:地址向后看。。】

     

    原理—END

11个目录的文件怎么一口气下载呢?

可悲的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"。

最后,把下好的文件批量名,同时将GitHub.exe.manifest也放到软件根目录下(与GitHub.exe同级):

由于下载下来的文件全是带. Deploy后缀的,所以给个工具批量替换,详见地址http://www.cnblogs.com/Chary/p/No00006C.html

 

[No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】_第11张图片

--END

今后的猜想:

一般情况下,程序的目录、结构都不会再变了,变的只是版本号,所以以后只要将上面下载连接中的"GitHub_3_0_11_0"字符串更新为新的版本号,接着扔给迅雷/wget Download就行了。

 给个附件:[No00006D]下载离线版的github_for_windows【以Github_for_Windows_3.0.110.为例】.7z,好了,上床钻被窝,冷死了。。

你可能感兴趣的:([No00006D]下载离线版的github for windows【以Github for Windows 3.0.110.为例】)