|
| 1 | +{ |
| 2 | + "version": "26.01-v0.61.0", |
| 3 | + "description": "A multi-format file archiver with high compression ratios (Dark Mode patched by ozone10)", |
| 4 | + "homepage": "https://github.com/ozone10/7zip-Dark7zip", |
| 5 | + "license": { |
| 6 | + "identifier": "MIT,MPL-2.0,BSD-2-Clause,BSD-3-Clause,LGPL-2.1-or-later", |
| 7 | + "url": "https://github.com/ozone10/7zip-Dark7zip/blob/main/LICENSE.md" |
| 8 | + }, |
| 9 | + "notes": [ |
| 10 | + "To avoid Scoop installing a duplicate default 7zip, please execute the following command:", |
| 11 | + "scoop config use_external_7zip true", |
| 12 | + "", |
| 13 | + "To register the context menu entry, please execute the following command:", |
| 14 | + "reg import \"$dir\\install-context.reg\"", |
| 15 | + "", |
| 16 | + "If an error occurs while attempting to delete files during uninstallation, run the following command and then retry:", |
| 17 | + "Stop-Process -Name 'explorer'" |
| 18 | + ], |
| 19 | + "architecture": { |
| 20 | + "64bit": { |
| 21 | + "url": [ |
| 22 | + "https://github.com/ip7z/7zip/releases/download/26.01/7z2601-x64.msi", |
| 23 | + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v26.01-v0.61.0/7z26.01-v0.61.0-x64.zip#/patch.dl" |
| 24 | + ], |
| 25 | + "hash": [ |
| 26 | + "a47ea8dcf8bc08e6de474cae77c828e031fa22cb528f6095defffebf11cd02f2", |
| 27 | + "5fab69ad6a906ff06ad497a6954877218819f356c375d52d3bda6b5785ae6e25" |
| 28 | + ], |
| 29 | + "extract_dir": "Files\\7-Zip", |
| 30 | + "pre_install": [ |
| 31 | + "Invoke-ExternalCommand \"$dir\\7z.exe\" @('x', \"$dir\\patch.dl\", \"-o$dir\", '-y') | Out-Null", |
| 32 | + "Remove-Item \"$dir\\patch.dl\" -Force" |
| 33 | + ] |
| 34 | + }, |
| 35 | + "arm64": { |
| 36 | + "url": [ |
| 37 | + "https://github.com/ip7z/7zip/releases/download/26.01/7z2601-arm64.exe", |
| 38 | + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v26.01-v0.61.0/7z26.01-v0.61.0-arm64.zip#/patch.dl" |
| 39 | + ], |
| 40 | + "hash": [ |
| 41 | + "1fecf4e3407950939c8ffcc3e42e3039821997dea155301c75369474e5f15175", |
| 42 | + "8c9af32b1c66ad4b1b8597b054b82719045327fe0dcab8986186600ba8b7133d" |
| 43 | + ], |
| 44 | + "pre_install": [ |
| 45 | + "$7zr = Join-Path $env:TMP '7zr.exe'", |
| 46 | + "$7zVersion = $version -split '-' | Select-Object -First 1", |
| 47 | + "Invoke-WebRequest -Uri \"https://github.com/ip7z/7zip/releases/download/$7zVersion/7zr.exe\" -OutFile $7zr", |
| 48 | + "$arm_exe = (Get-ChildItem \"$dir\\*-arm64.exe\").FullName", |
| 49 | + "Invoke-ExternalCommand $7zr @('x', $arm_exe, \"-o$dir\", '-y') | Out-Null", |
| 50 | + "Invoke-ExternalCommand \"$dir\\7z.exe\" @('x', \"$dir\\patch.dl\", \"-o$dir\", '-y') | Out-Null", |
| 51 | + "Remove-Item \"$dir\\Uninstall.exe\", $arm_exe, \"$dir\\patch.dl\", $7zr -Force" |
| 52 | + ] |
| 53 | + } |
| 54 | + }, |
| 55 | + "post_install": [ |
| 56 | + "$7zip_dir = $dir -replace '\\\\', '\\\\'", |
| 57 | + "Get-ChildItem -Path \"$bucketsdir\\main\\scripts\\7-zip\" -Filter '*.reg' -File | ForEach-Object {", |
| 58 | + " $content = Get-Content -Path $_.FullName -Encoding utf8", |
| 59 | + " if ($global) { $content = $content -replace 'HKEY_CURRENT_USER(?=.+Classes)', 'HKEY_LOCAL_MACHINE' }", |
| 60 | + " $content -replace '{{7zip_dir}}', $7zip_dir | Set-Content -Path \"$dir\\$($_.Name)\" -Encoding unicode", |
| 61 | + "}" |
| 62 | + ], |
| 63 | + "bin": [ |
| 64 | + "7z.exe", |
| 65 | + "7zG.exe", |
| 66 | + "7zFM.exe" |
| 67 | + ], |
| 68 | + "shortcuts": [ |
| 69 | + [ |
| 70 | + "7zFM.exe", |
| 71 | + "7-Zip\\7-Zip File Manager (Dark Mode)" |
| 72 | + ], |
| 73 | + [ |
| 74 | + "7-zip.chm", |
| 75 | + "7-Zip\\7-Zip Help" |
| 76 | + ] |
| 77 | + ], |
| 78 | + "persist": [ |
| 79 | + "Codecs", |
| 80 | + "Formats" |
| 81 | + ], |
| 82 | + "uninstaller": { |
| 83 | + "script": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" *> $null }" |
| 84 | + }, |
| 85 | + "checkver": { |
| 86 | + "github": "https://github.com/ozone10/7zip-Dark7zip", |
| 87 | + "regex": "v([\\d.]+-v[\\d.]+)" |
| 88 | + }, |
| 89 | + "autoupdate": { |
| 90 | + "architecture": { |
| 91 | + "64bit": { |
| 92 | + "url": [ |
| 93 | + "https://github.com/ip7z/7zip/releases/download/$matchHead/7z$majorVersion$minorVersion-x64.msi", |
| 94 | + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$version-x64.zip#/patch.dl" |
| 95 | + ] |
| 96 | + }, |
| 97 | + "arm64": { |
| 98 | + "url": [ |
| 99 | + "https://github.com/ip7z/7zip/releases/download/$matchHead/7z$majorVersion$minorVersion-arm64.exe", |
| 100 | + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$version-arm64.zip#/patch.dl" |
| 101 | + ] |
| 102 | + } |
| 103 | + } |
| 104 | + } |
| 105 | +} |
0 commit comments