generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tortoisegit.json
87 lines (87 loc) · 3.5 KB
/
tortoisegit.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
82
83
84
85
86
87
{
"version": "2.16.0.0",
"homepage": "https://tortoisegit.org/",
"license": "https://www.gnu.org/licenses/gpl-2.0",
"architecture": {
"64bit": {
"url": "https://scoop-packages.itsmtaxud.priv/packages/tortoisegit/TortoiseGit-2.16.0.0-64bit.msi",
"hash": "md5:6C4F86FAC60A9EF581DBC9BD7F4D05BC"
},
"32bit": {
"url": "https://download.tortoisegit.org/tgit/2.16.0.0/TortoiseGit-2.16.0.0-32bit.msi",
"hash": "md5:A13B4C40F1EACA16DFACB69853E942A0"
}
},
"extract_dir": [
"Program Files\\TortoiseGit",
"Program Files\\TortoiseGit"
],
"pre_install": [
"[Environment]::SetEnvironmentVariable(\"GIT_INSTALL_ROOT\", \"C:\\ProgramData\\scoop\\apps\\git\\current\bin\", \"Machine\")",
"$shortcutPath = \"$env:ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\TortoiseGit Settings.lnk\"",
"$targetPath = \"$env:ProgramData\\scoop\\apps\\tortoisegit\\current\\bin\\TortoiseGitProc.exe\"",
"$WScriptShell = New-Object -ComObject WScript.Shell",
"$shortcut = $WScriptShell.CreateShortcut($shortcutPath)",
"$shortcut.TargetPath = $targetPath",
"$shortcut.Arguments = '/command:settings'",
"$shortcut.Save()",
"$shortcutPath = \"$env:ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\TortoiseGit.lnk\"",
"$targetPath = \"$env:ProgramData\\scoop\\apps\\tortoisegit\\current\\bin\\TortoiseGitProc.exe\"",
"$WScriptShell = New-Object -ComObject WScript.Shell",
"$shortcut = $WScriptShell.CreateShortcut($shortcutPath)",
"$shortcut.TargetPath = $targetPath",
"$shortcut.Arguments = '/command:rtfm'",
"$shortcut.Save()"
],
"bin": [
"bin\\TortoiseGitMerge.exe",
"bin\\TortoiseGitIDiff.exe",
"bin\\TortoiseGitBlame.exe",
"bin\\TortoiseGitProc.exe"
],
"shortcuts": [
[
"bin\\TortoiseGitMerge.exe",
"TortoiseGitMerge"
],
[
"bin\\TortoiseGitIDiff.exe",
"TortoiseGitIDiff"
],
[
"bin\\TortoiseGitBlame.exe",
"TortoiseGitBlame"
]
],
"post_install": [
"$installDir = \"$dir\"",
"$installRoot = $installDir.Replace('\\', '\\\\')",
"'install-context.reg', 'uninstall-context.reg' | ForEach-Object {",
" $content = Get-Content \"$bucketsdir\\dso-scoop-repo\\scripts\\tortoisegit\\$_\"",
" $content = $content.Replace('$tortoisegit_root', $installRoot)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" Set-Content \"$installDir\\$_\" $content -Encoding Ascii",
"}"
],
"post_uninstall": [
"$shortcutPath = \"$env:ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\TortoiseGit Settings.lnk\"",
"Remove-Item -Path $shortcutPath -Force -ErrorAction SilentlyContinue",
"$shortcutPath = \"$env:ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\TortoiseGit.lnk\"",
"Remove-Item -Path $shortcutPath -Force -ErrorAction SilentlyContinue"
],
"checkver": {
"url": "https://download.tortoisegit.org/"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://download.tortoisegit.org/tgit/2.16.0.0/TortoiseGit-$version-64bit.msi"
},
"32bit": {
"url": "https://download.tortoisegit.org/tgit/2.16.0.0/TortoiseGit-$version-32bit.msi"
}
}
}
}