forked from ScoopInstaller/Main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7zip.json
72 lines (72 loc) · 2.52 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
{
"version": "24.06",
"description": "A multi-format file archiver with high compression ratios",
"homepage": "https://www.7-zip.org/",
"license": "LGPL-2.1-or-later",
"notes": "Add 7-Zip as a context menu option by running: \"$dir\\install-context.reg\"",
"architecture": {
"64bit": {
"url": "https://www.7-zip.org/a/7z2406-x64.msi",
"hash": "946e32bf1eb545146ad47287d0837b01de86329c20f7081fc171d543a8578ec9",
"extract_dir": "Files\\7-Zip"
},
"32bit": {
"url": "https://www.7-zip.org/a/7z2406.msi",
"hash": "86d8bdc123a020c37904f781f723e9b6b9768c5dc8878c7d7bbcb3cf57bf8d41",
"extract_dir": "Files\\7-Zip"
},
"arm64": {
"url": "https://www.7-zip.org/a/7z2406-arm64.exe",
"hash": "43ac4903ac5ba7219c665637e71917c6a2c2f8e515344e1ee04c263b8f5c934d",
"pre_install": [
"$7zr = Join-Path $env:TMP '7zr.exe'",
"Invoke-WebRequest https://www.7-zip.org/a/7zr.exe -OutFile $7zr",
"Invoke-ExternalCommand $7zr @('x', \"$dir\\$fname\", \"-o$dir\", '-y') | Out-Null",
"Remove-Item \"$dir\\Uninstall.exe\", \"$dir\\*-arm64.exe\", $7zr"
]
}
},
"post_install": [
"$7zip_root = \"$dir\".Replace('\\', '\\\\')",
"'install-context.reg', 'uninstall-context.reg' | ForEach-Object {",
" $content = Get-Content \"$bucketsdir\\main\\scripts\\7-zip\\$_\"",
" $content = $content.Replace('$7zip_root', $7zip_root)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" Set-Content \"$dir\\$_\" $content -Encoding Ascii",
"}"
],
"bin": [
"7z.exe",
"7zFM.exe",
"7zG.exe"
],
"shortcuts": [
[
"7zFM.exe",
"7-Zip"
]
],
"persist": [
"Codecs",
"Formats"
],
"checkver": {
"url": "https://www.7-zip.org/download.html",
"regex": "Download 7-Zip ([\\d.]+) \\(\\d{4}-\\d{2}-\\d{2}\\)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://www.7-zip.org/a/7z$cleanVersion-x64.msi"
},
"32bit": {
"url": "https://www.7-zip.org/a/7z$cleanVersion.msi"
},
"arm64": {
"url": "https://www.7-zip.org/a/7z$cleanVersion-arm64.exe"
}
}
}
}