forked from ScoopInstaller/Main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7zip.json
73 lines (73 loc) · 2.7 KB
/
7zip.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
{
"version": "21.06",
"description": "A multi-format file archiver with high compression ratios",
"homepage": "https://www.7-zip.org/",
"license": {
"identifier": "Freeware,LGPL-2.0-only,BSD-3-Clause",
"url": "https://www.7-zip.org/license.txt"
},
"notes": "Add 7-Zip as a context menu option by running: \"$dir\\install-context.reg\"",
"architecture": {
"64bit": {
"url": [
"https://7-zip.org/a/7z2106-x64.msi",
"https://raw.githubusercontent.com/ScoopInstaller/Main/master/scripts/7-zip/install-context.reg",
"https://raw.githubusercontent.com/ScoopInstaller/Main/master/scripts/7-zip/uninstall-context.reg"
],
"hash": [
"3a18c7ed102778c1735def84d88c1abeec6919436aee4c4d852acaea90101dd7",
"358c8a2f87c4dc89c86ee4c72c71766856da146c0a8840001e6821fe5bb0c7ca",
"667ef7b5c7bfb6cdcc595042ac6c0cae802fbfd59fc601b22b533f6f1bcaf374"
]
},
"32bit": {
"url": [
"https://7-zip.org/a/7z2106.msi",
"https://raw.githubusercontent.com/ScoopInstaller/Main/master/scripts/7-zip/install-context.reg",
"https://raw.githubusercontent.com/ScoopInstaller/Main/master/scripts/7-zip/uninstall-context.reg"
],
"hash": [
"68a38ecca0643f55eff55e6c5cc22bb89b4763a5cfdc68fd53b06f50da10ed5d",
"358c8a2f87c4dc89c86ee4c72c71766856da146c0a8840001e6821fe5bb0c7ca",
"667ef7b5c7bfb6cdcc595042ac6c0cae802fbfd59fc601b22b533f6f1bcaf374"
]
}
},
"pre_install": [
"$7zip_root = \"$dir\".Replace('\\', '\\\\')",
"'install-context.reg', 'uninstall-context.reg' | ForEach-Object {",
" $content = Get-Content \"$dir\\$_\"",
" $content = $content.Replace('$7zip_root', $7zip_root)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" Set-Content \"$dir\\$_\" $content -Encoding Ascii",
"}"
],
"extract_dir": "Files\\7-Zip",
"bin": "7z.exe",
"shortcuts": [
[
"7zFM.exe",
"7-Zip"
]
],
"persist": [
"Codecs",
"Formats"
],
"checkver": {
"url": "https://www.7-zip.org/download.html",
"regex": "Download 7-Zip ([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://7-zip.org/a/7z$cleanVersion-x64.msi"
},
"32bit": {
"url": "https://7-zip.org/a/7z$cleanVersion.msi"
}
}
}
}