mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-12-28 11:34:25 +00:00
55 lines
1.7 KiB
JSON
55 lines
1.7 KiB
JSON
{
|
|
"version": "22.00",
|
|
"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://7-zip.org/a/7z2200-x64.msi",
|
|
"hash": "5c6e1cc0a09de58131707c332add6e30cd299383999b8f047a90335f8066e217"
|
|
},
|
|
"32bit": {
|
|
"url": "https://7-zip.org/a/7z2200.msi",
|
|
"hash": "fa2d9af8763b898374fc4f44010cf824147369a63730f9cdf2985bd0028c0175"
|
|
}
|
|
},
|
|
"extract_dir": "Files\\7-Zip",
|
|
"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",
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|