mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-02 23:01:19 +00:00
58 lines
1.8 KiB
JSON
58 lines
1.8 KiB
JSON
{
|
|
"version": "21.07",
|
|
"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/7z2107-x64.msi",
|
|
"hash": "5447c9ac39c48f1bc7c88359b0520396a8c9707b307c107236a93a68e6fd3eb6"
|
|
},
|
|
"32bit": {
|
|
"url": "https://7-zip.org/a/7z2107.msi",
|
|
"hash": "b3ca98a8784c710108bbf56f9355ac6060af770b8459a32d94cc09b73cf0af7e"
|
|
}
|
|
},
|
|
"pre_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",
|
|
"}"
|
|
],
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|