首页 > IT生活 > 另一种思路安装GitHub客户端Windows版
2016
03-16

另一种思路安装GitHub客户端Windows版

一、为什么会有本帖?

    我想会看到这个帖子的人,一定是使用通常的安装方式不成功,这之中的问题有很多,但最主要的问题是:

    GitHub客户端的Windows版本在线安装不支持断点传送,这要求你在下载安装过程中不能放生一丁点的错误,错误意味着从头再来一开始我就是被这么折磨的,总想抱着侥幸的心理,万一安装成功了呢;然而被墙后的网速不是那么尽如人意,如此长的时间以及糟糕的网络质量,出错是难免的。

    也因此,我开始在网上找寻办法,发现不止我有这个问题,但是没有人给出具体可行的方法,直到在网上找到了一篇帖子,这篇写出了另一种思路安装github的方法,只不过版本是老一些的,版本为GitHub_3_0_11_0,具体的连接我放在了本文的最后参考资料部分。

    废话不多说,下面进入正题

二、打包好的GitHub客户端:

    可能有人对原理不感兴趣,只是想找个离线包就好了,所以这里为了不同看本文的人的需求,我先将昨天晚上搞好的GitHub_3_0_14_0打包,放入了百度云!连接如下:

    http://pan.baidu.com/s/1qWXEpnI

三、新安装方式原理:

    我们针对现有的问题进行解决:1.断点传输;2.下载慢

    第一个问题显然更重要些,所以使用别的下载工具进行下载,在Windows下,迅雷是个不错的下载工具。

    然后我们又产生了新的问题:1.文件的下载地址在哪?2.文件的目录结构又是怎样的?

    所以我们的具体思路是三个步骤:1.找到文件的下载地址 2.使用迅雷或其他下载工具进行下载 3.拼装GitHub

那么我就一步一步来吧!

四、具体步骤:

    首先,我们要知道两个文件GitHub.application和GitHub.exe .manifest。这两个文件我们可以用文本编辑器打开,都是XML文件。

    使用迅雷下载GitHub.application,方法是输入如下网址:http://github-windows.s3.amazonaws.com/GitHub.application

blob.png

下载后,

用文本编辑器打开,

blob.png

版本号为3.0.14.0.

再双击运行它,当发生错误后,我们点开详细信息,原来还有一个GitHub.exe .manifest文件,再次使用迅雷下载它,网址是:

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ GitHub.exe.manifest

blob.png

    当我们用文本编辑器打开的时候会发现,又是一个XML文件,不过这回信息更多了,如果你有兴趣可以自己研究下,不过经过一段时间仔细观察,这里面包含了很多文件,怎么才能找到文件名呢?拼接成我们想要的网址?我的想法就是匹配固定字符的行,学过Linux的会说用Grep呗,但是Windows呢,有一工具叫做findstr。

    先看看这个咋用:

blob.png

    看懂用法后,我们开始匹配我们需要的行。

    当我们匹配size时,就会有如下的效果:

命令是:findstr "size" "GitHub.exe .manifest"

blob.png

    将输出结果,放入文本编辑器中进行替换

使用文本编辑器开始拼凑下载地址:

    将“    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="”和“  <file name="”替换为“http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/”

    将后面的除文件名部分替换为.deploy

    替换后进行排序,这个过程中我们也发现了目录结构,整理最后的下载地址如下:

github:

根:

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Akavache.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Akavache.Sqlite3.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Caliburn.Micro.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/CefSharp.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/CefSharp.Core.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/CefSharp.Wpf.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/GitHub.exe.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/GitHub.Core.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/GitHub.PortableGit.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/GitHub.UI.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Gitpad.exe.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ICSharpCode.AvalonEdit.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ICSharpCode.NRefactory.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/LibGit2Sharp.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Microsoft.Expression.Effects.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Microsoft.Expression.Interactions.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Microsoft.WindowsAPICodePack.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Microsoft.WindowsAPICodePack.Shell.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Newtonsoft.Json.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/NLog.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Octokit.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Octokit.Reactive.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ReactiveUI.Events.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ReactiveUI.Routing_Net45.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ReactiveUI.Xaml_Net45.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ReactiveUI_Net45.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Splat.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/SQLitePCL.raw.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/System.Interactive.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/System.Reactive.Core.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/System.Reactive.Interfaces.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/System.Reactive.Linq.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/System.Reactive.PlatformServices.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/System.Reactive.Windows.Threading.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/System.Windows.Interactivity.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/7za.exe.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/CefSharp.BrowserSubprocess.Core.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/CefSharp.BrowserSubprocess.exe.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/d3dcompiler_47.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/GitHub.exe.config.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/gitignore.7z.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/icudtl.dat.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/lfs-amd64.7z.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/lfs-x86.7z.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/libcef.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/libEGL.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/libGLESv2.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/PortableGit.7z.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/posh-git.7z.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/tutorial.7z.deploy

Images:

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/Images/App.ico.deploy

en:

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/en/Microsoft.Expression.Interactions.resources.dll.deploy

de:

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/de/Microsoft.Expression.Effects.resources.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/de/Microsoft.Expression.Interactions.resources.dll.deploy

es:

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/es/Microsoft.Expression.Interactions.resources.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/es/Microsoft.Expression.Effects.resources.dll.deploy

fr:

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/fr/Microsoft.Expression.Effects.resources.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/fr/Microsoft.Expression.Interactions.resources.dll.deploy

it:

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/it/Microsoft.Expression.Effects.resources.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/it/Microsoft.Expression.Interactions.resources.dll.deploy

ja:

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ja/Microsoft.Expression.Effects.resources.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ja/Microsoft.Expression.Interactions.resources.dll.deploy

ko:

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ko/Microsoft.Expression.Effects.resources.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ko/Microsoft.Expression.Interactions.resources.dll.deploy

ru:

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ru/Microsoft.Expression.Effects.resources.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/ru/Microsoft.Expression.Interactions.resources.dll.deploy

zh-Hans

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/zh-Hans/Microsoft.Expression.Effects.resources.dll.deploy


http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/zh-Hans/Microsoft.Expression.Interactions.resources.dll.deploy

zh-Hant

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/zh-Hant/Microsoft.Expression.Effects.resources.dll.deploy

http://github-windows.s3.amazonaws.com/Application Files/GitHub_3_0_14_0/zh-Hant/Microsoft.Expression.Interactions.resources.dll.deploy

然后你懂的,创建相应的目录结构,设置下载目录,进行下载:

    blob.png

然后就是改名了,去掉.deploy,如果你有精力写个脚本,没有可以和使用工具,网上找资料,有人使用这个工具:

blob.png

    百度云分享链接:http://pan.baidu.com/s/1qWXEpnI

用法可以参考这篇:http://www.cnblogs.com/Chary/p/No00006D.html?utm_source=tuicool&utm_medium=referral

五、参考:

http://www.cnblogs.com/Chary/p/No00006D.html?utm_source=tuicool&utm_medium=referral




最后编辑:
作者:PurStar
PurStar
这个作者貌似有点懒,什么都没有留下。
捐 赠您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请狠狠点击

留下一个回复