-
-
Notifications
You must be signed in to change notification settings - Fork 978
/
Copy pathgit.json
81 lines (81 loc) · 3.02 KB
/
git.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"version": "2.47.1.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.47.1.windows.2/PortableGit-2.47.1.2-64-bit.7z.exe#/dl.7z",
"hash": "d73f0c1a42afbabe43862bd5abf5a646798125bc33cc02b7da7bbaeddae948f0"
},
"32bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v2.47.1.windows.2/PortableGit-2.47.1.2-32-bit.7z.exe#/dl.7z",
"hash": "b1b1715676b1aaf0cdffe7287c70c37a94408fd872d538f4b00834d278a9e02f"
}
},
"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": {
"url": "https://api.github.com/repositories/23216272/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"
},
"32bit": {
"url": "https://github.com/git-for-windows/git/releases/download/v$matchTag/PortableGit-$version-32-bit.7z.exe#/dl.7z"
}
},
"hash": {
"url": "https://github.com/git-for-windows/git/releases/tag/v$matchTag",
"regex": "(?s)$basename.*?$sha256"
}
}
}