mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-10-31 13:51:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			93 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			93 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|     "version": "2.51.2",
 | |
|     "description": "Distributed version control system",
 | |
|     "homepage": "https://gitforwindows.org",
 | |
|     "license": "GPL-2.0-only",
 | |
|     "notes": [
 | |
|         "Set Git Credential Manager Core by running: \"git config --global credential.helper manager\"",
 | |
|         "",
 | |
|         "To add context menu entries, run '$dir\\install-context.reg'",
 | |
|         "",
 | |
|         "To create file-associations for .git* and .sh files, run '$dir\\install-file-associations.reg'"
 | |
|     ],
 | |
|     "architecture": {
 | |
|         "64bit": {
 | |
|             "url": "https://github.com/git-for-windows/git/releases/download/v2.51.2.windows.1/PortableGit-2.51.2-64-bit.7z.exe#/dl.7z",
 | |
|             "hash": "f5764d546ff9a2511b50ec4e20424c5f4669de1695abc3fa4128e7f7d4a7b2cd"
 | |
|         },
 | |
|         "arm64": {
 | |
|             "url": "https://github.com/git-for-windows/git/releases/download/v2.51.2.windows.1/PortableGit-2.51.2-arm64.7z.exe#/dl.7z",
 | |
|             "hash": "73375f4278c84611e788b2adb604fb98213bc8f0accecf3d5d5800748c6fa32e"
 | |
|         }
 | |
|     },
 | |
|     "post_install": [
 | |
|         "'install-context', 'uninstall-context', 'install-file-associations', 'uninstall-file-associations' | ForEach-Object {",
 | |
|         "    $reg_file_in  = \"$bucketsdir\\main\\scripts\\git\\$_.reg\"",
 | |
|         "    $reg_file_out = \"$dir\\$_.reg\"",
 | |
|         "    $git_root     = \"$dir\".Replace('\\', '\\\\')",
 | |
|         "    if (Test-Path $reg_file_in) {",
 | |
|         "        $content = Get-Content $reg_file_in",
 | |
|         "        $content = $content.Replace('$git_root', $git_root)",
 | |
|         "        if ($global) {",
 | |
|         "            $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
 | |
|         "        }",
 | |
|         "        Set-Content -Path $reg_file_out -Value $content -Encoding Ascii",
 | |
|         "    }",
 | |
|         "}"
 | |
|     ],
 | |
|     "bin": [
 | |
|         "cmd\\git.exe",
 | |
|         "cmd\\gitk.exe",
 | |
|         "cmd\\git-gui.exe",
 | |
|         "git-bash.exe",
 | |
|         "usr\\bin\\gpg.exe",
 | |
|         "usr\\bin\\gpgconf.exe",
 | |
|         "usr\\bin\\ssh.exe",
 | |
|         "usr\\bin\\scp.exe",
 | |
|         "usr\\bin\\sftp.exe",
 | |
|         "usr\\bin\\ssh-add.exe",
 | |
|         "usr\\bin\\ssh-agent.exe",
 | |
|         [
 | |
|             "bin/sh.exe",
 | |
|             "ssh-copy-id",
 | |
|             "ssh-copy-id"
 | |
|         ],
 | |
|         "usr\\bin\\ssh-keygen.exe",
 | |
|         "usr\\bin\\ssh-keyscan.exe",
 | |
|         "usr\\bin\\tig.exe"
 | |
|     ],
 | |
|     "shortcuts": [
 | |
|         [
 | |
|             "git-bash.exe",
 | |
|             "Git Bash",
 | |
|             "--cd-to-home"
 | |
|         ],
 | |
|         [
 | |
|             "cmd\\git-gui.exe",
 | |
|             "Git GUI"
 | |
|         ]
 | |
|     ],
 | |
|     "env_set": {
 | |
|         "GIT_INSTALL_ROOT": "$dir"
 | |
|     },
 | |
|     "checkver": {
 | |
|         "url": "https://api.github.com/repos/git-for-windows/git/releases/latest",
 | |
|         "jsonpath": "$..browser_download_url",
 | |
|         "regex": "download/v(?<tag>[\\d.]+windows\\.\\d)/PortableGit-([\\d.]+)-64"
 | |
|     },
 | |
|     "autoupdate": {
 | |
|         "architecture": {
 | |
|             "64bit": {
 | |
|                 "url": "https://github.com/git-for-windows/git/releases/download/v$matchTag/PortableGit-$version-64-bit.7z.exe#/dl.7z"
 | |
|             },
 | |
|             "arm64": {
 | |
|                 "url": "https://github.com/git-for-windows/git/releases/download/v$matchTag/PortableGit-$version-arm64.7z.exe#/dl.7z"
 | |
|             }
 | |
|         },
 | |
|         "hash": {
 | |
|             "url": "https://github.com/git-for-windows/git/releases/tag/v$matchTag",
 | |
|             "regex": "(?s)$basename.*?$sha256"
 | |
|         }
 | |
|     }
 | |
| }
 | 
![github-actions[bot]](/assets/img/avatar_default.png)