About GitHub offline installation package download integration

Preface: On a whim, I was going to play with GitHub, but the client version installed on the machine was too low (not playing for a long time), and the update failed, so I re-downloaded the update, but found that the installation was never successful, because the download speed was too slow Caused the host to disconnect. So I started to search for various solutions to solve the unsuccessful installation of GitHub:

 

 Method 1 (source Baidu experience url: http://jingyan.baidu.com/article/fd8044fa924e8f5031137ac6.html)

    1. Open Control Panel → Internet Options → "Security" tab.

    2. Select "Trusted Sites" → click the "Sites" button.

    3. Enter in the text box in the pop-up window and click "Add" https://github-windows.s3.amazonaws.com/ ;

  Or uncheck the checkbox "Require server authentication (https:) for all sites in this zone" and add it directly to github-windows.s3.amazonaws.com.

    4. Open http://github-windows.s3.amazonaws.com/GitHub.application in Internet Explorer, and download and install normally. 

    After following this operation, I found that this method mainly solves the problem that the update program cannot be opened and cannot be downloaded. It is inconsistent with the slow download speed I encountered and caused the interruption. Therefore, method 1 is not applicable.

 

  Method 2 (source Zhihu url: https://www.zhihu.com/question/23110947)

    Zhihu adopts the method of setting hosts and the offline installation package method to complete

    Modifying the hosts did not help the installation successfully, and using a vpn also did not help much.

    So the last direction is to manually download the file and make an installation package for offline installation. Here I am lazy and download the installation package made by others (website: http://suo.im/268Z8T) for directory file comparison.

    1. Download the list of files required for installation

      According to the answerer of Zhihu, the manifest list is required, but my local environment does not have this manifest file. Refer to the offline installation package below to know the path of the manifest \Application Files\GitHub_version number\GitHub.exe.manifest, add The URL of the download file obtained due to the installation error before the above

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

Knowing that the current latest version number is 3_3_3_0, so the splicing result

url:http://github-windows.s3.amazonaws.com/Application%20Files/GitHub_3_3_3_0/GitHub.exe.manifest

Then complete the download of the manifest file.

    2. Extract the list of files that need to be downloaded

      Use a text editor (I am using editplus here), use regular expressions ( codebase=".+.dll ) to extract the .dll files to be used (52) Regular expression ( file name=.+size ) Extract To 16, plus ( GitHub.exe, Images\App.ico, GitHub.exe ), a total of 70 files need to be downloaded. After the list is sorted, the download path URL is spliced, because the suffixes of the files to be downloaded are all .deploy , so the splicing completed download url style is suffixed with .deploy, such as

http://github-windows.s3.amazonaws.com/Application%20Files/GitHub_3_3_3_0/*.dll.deploy

      A list of documents can be found in the attachment.

    3. Download the installation file and organize the directory structure

      Use the tool (I use Thunder) to download the file from the list sorted in step 2. After the download is complete, you need to sort the files to have the corresponding directory structure, such as lib, Images, de, en, es and other directories. It should be noted that GitHub.exe.manifest also needs to be placed in the corresponding directory. The directory structure is shown in the attachment.

    4. After finishing, start the installation

      Installation requires a  GitHub.application file, which can be downloaded from the website,

http://github-windows.s3.amazonaws.com/GitHub.application#GitHub.application, Culture=neutral, PublicKeyToken=317444273a93ac29, processorArchitecture=x86

      Different versions have corresponding PublicKeyToken. This PublicKeyToken can be found in GitHub.exe.manifest , and the PublicKeyToken in the following GitHub.exe.manifest can be copied to download GitHub.application.

       After the download is complete, you can install it on GitHub.

 

       PS: What is more embarrassing is that when finishing this article, I found that some predecessors have completed the integration of the offline installation package of version 3.3.3.0.

Attached URL: http://download.csdn.net/detail/devsplash/9683971, fortunately, I did not find the detailed integration method of the offline installation package.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326802669&siteId=291194637