mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-04 07:41:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			81 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			81 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "version": "2.40.1.windows.1",
 | 
						|
    "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.40.1.windows.1/PortableGit-2.40.1-64-bit.7z.exe#/dl.7z",
 | 
						|
            "hash": "9e1d819aef3284420adf6d923b0d4865254bd403641d915975e49ddea1e7cdf9"
 | 
						|
        },
 | 
						|
        "32bit": {
 | 
						|
            "url": "https://github.com/git-for-windows/git/releases/download/v2.40.1.windows.1/PortableGit-2.40.1-32-bit.7z.exe#/dl.7z",
 | 
						|
            "hash": "e1360e94cb292862fb023018578a1029022a09278b160f7264c6dc444f65c9ca"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "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": [
 | 
						|
        "bin\\sh.exe",
 | 
						|
        "bin\\bash.exe",
 | 
						|
        "cmd\\git.exe",
 | 
						|
        "cmd\\gitk.exe",
 | 
						|
        "cmd\\git-gui.exe",
 | 
						|
        "cmd\\scalar.exe",
 | 
						|
        "usr\\bin\\tig.exe",
 | 
						|
        "git-bash.exe"
 | 
						|
    ],
 | 
						|
    "shortcuts": [
 | 
						|
        [
 | 
						|
            "git-bash.exe",
 | 
						|
            "Git Bash",
 | 
						|
            "--cd-to-home"
 | 
						|
        ],
 | 
						|
        [
 | 
						|
            "cmd\\git-gui.exe",
 | 
						|
            "Git GUI"
 | 
						|
        ]
 | 
						|
    ],
 | 
						|
    "env_set": {
 | 
						|
        "GIT_INSTALL_ROOT": "$dir"
 | 
						|
    },
 | 
						|
    "checkver": {
 | 
						|
        "github": "https://github.com/git-for-windows/git",
 | 
						|
        "regex": "tag/v([\\d.]+\\.windows\\.\\d)"
 | 
						|
    },
 | 
						|
    "autoupdate": {
 | 
						|
        "architecture": {
 | 
						|
            "64bit": {
 | 
						|
                "url": "https://github.com/git-for-windows/git/releases/download/v$version/PortableGit-$matchHead-64-bit.7z.exe#/dl.7z"
 | 
						|
            },
 | 
						|
            "32bit": {
 | 
						|
                "url": "https://github.com/git-for-windows/git/releases/download/v$version/PortableGit-$matchHead-32-bit.7z.exe#/dl.7z"
 | 
						|
            }
 | 
						|
        },
 | 
						|
        "hash": {
 | 
						|
            "url": "https://github.com/git-for-windows/git/releases/tag/v$version",
 | 
						|
            "regex": "(?s)$basename.*?$sha256"
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |