From f5276e73bb3546b79b1c911208396c90c792601b Mon Sep 17 00:00:00 2001 From: ChenXu Date: Mon, 30 Mar 2026 21:01:50 +0800 Subject: [PATCH 1/4] 7zip-dark@26.00-v0.48.0: initial release --- bucket/7zip-dark.json | 92 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 bucket/7zip-dark.json diff --git a/bucket/7zip-dark.json b/bucket/7zip-dark.json new file mode 100644 index 00000000000..16c545f28d0 --- /dev/null +++ b/bucket/7zip-dark.json @@ -0,0 +1,92 @@ +{ + "version": "26.00-v0.48.0", + "description": "A multi-format file archiver with high compression ratios (Dark Mode patched by ozone10)", + "homepage": "https://github.com/ozone10/7zip-Dark7zip", + "license": "LGPL-2.1-or-later", + "notes": [ + "Add 7-Zip as a context menu option by running:", + "reg import \"$dir\\install-context.reg\"", + "This version includes the Dark Mode patch by ozone10 (x64 and arm64 only)." + ], + "architecture": { + "64bit": { + "url": [ + "https://www.7-zip.org/a/7z2600-x64.msi", + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v26.00-v0.48.0/7z26.00-v0.48.0-x64.zip#/patch.dl" + ], + "hash": [ + "c388d0444871ca11b21237001af158cfddad7e137851795e5b65cee69b518495", + "89f8583d60168e099284f14940a2c301ef1b8e037416c8bed8c14c081c6d0da6" + ], + "pre_install": [ + "Move-Item \"$dir\\Files\\7-Zip\\*\" \"$dir\" -Force", + "Remove-Item \"$dir\\Files\" -Recurse -Force", + "Invoke-ExternalCommand \"$dir\\7z.exe\" @('x', \"$dir\\patch.dl\", \"-o$dir\", '-y') | Out-Null", + "Remove-Item \"$dir\\patch.dl\" -Force" + ] + }, + "arm64": { + "url": [ + "https://www.7-zip.org/a/7z2600-arm64.exe", + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v26.00-v0.48.0/7z26.00-v0.48.0-arm64.zip#/patch.dl" + ], + "hash": [ + "92fac666911336f3bbf3d99fdc48ec36fe20ac7a4200556936e61a8076ae6493", + "99db92902d7be8cfaec9e67fb072fbef33f624d14864519dda388c5da309ba37" + ], + "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\\7z2600-arm64.exe\", \"-o$dir\", '-y') | Out-Null", + "Invoke-ExternalCommand \"$dir\\7z.exe\" @('x', \"$dir\\patch.dl\", \"-o$dir\", '-y') | Out-Null", + "Remove-Item \"$dir\\Uninstall.exe\", \"$dir\\7z2600-arm64.exe\", \"$dir\\patch.dl\", $7zr -Force" + ] + } + }, + "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": { + "github": "https://github.com/ozone10/7zip-Dark7zip", + "regex": "v([\\d.]+)-(v[\\d.]+)" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": [ + "https://www.7-zip.org/a/7z$major$minor-x64.msi", + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$major.$minor-$match2-x64.zip#/patch.dl" + ] + }, + "arm64": { + "url": [ + "https://www.7-zip.org/a/7z$major$minor-arm64.exe", + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$major.$minor-$match2-arm64.zip#/patch.dl" + ] + } + } + } +} \ No newline at end of file From 71b8749bf4284401eb1dd451b0a19ef7e6b2e566 Mon Sep 17 00:00:00 2001 From: ChenXu Date: Mon, 30 Mar 2026 21:31:08 +0800 Subject: [PATCH 2/4] fix: resolve CI/CD pipeline failures with autoupdate regex and hardcoded strings --- bucket/7zip-dark.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bucket/7zip-dark.json b/bucket/7zip-dark.json index 16c545f28d0..99968b74cbb 100644 --- a/bucket/7zip-dark.json +++ b/bucket/7zip-dark.json @@ -37,9 +37,10 @@ "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\\7z2600-arm64.exe\", \"-o$dir\", '-y') | Out-Null", + "$arm_exe = (Get-ChildItem \"$dir\\*-arm64.exe\").FullName", + "Invoke-ExternalCommand $7zr @('x', $arm_exe, \"-o$dir\", '-y') | Out-Null", "Invoke-ExternalCommand \"$dir\\7z.exe\" @('x', \"$dir\\patch.dl\", \"-o$dir\", '-y') | Out-Null", - "Remove-Item \"$dir\\Uninstall.exe\", \"$dir\\7z2600-arm64.exe\", \"$dir\\patch.dl\", $7zr -Force" + "Remove-Item \"$dir\\Uninstall.exe\", $arm_exe, \"$dir\\patch.dl\", $7zr -Force" ] } }, @@ -71,20 +72,21 @@ ], "checkver": { "github": "https://github.com/ozone10/7zip-Dark7zip", - "regex": "v([\\d.]+)-(v[\\d.]+)" + "regex": "v(?[\\d.]+)-(?v[\\d.]+)", + "replace": "${version}-${patch}" }, "autoupdate": { "architecture": { "64bit": { "url": [ "https://www.7-zip.org/a/7z$major$minor-x64.msi", - "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$major.$minor-$match2-x64.zip#/patch.dl" + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$major.$minor-$matchPatch-x64.zip#/patch.dl" ] }, "arm64": { "url": [ "https://www.7-zip.org/a/7z$major$minor-arm64.exe", - "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$major.$minor-$match2-arm64.zip#/patch.dl" + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$major.$minor-$matchPatch-arm64.zip#/patch.dl" ] } } From 8ab5131638fcfdbfa0e2b5dceaaf20605e3c5e3a Mon Sep 17 00:00:00 2001 From: ChenXu Date: Wed, 1 Apr 2026 00:59:59 +0800 Subject: [PATCH 3/4] fix: Rewrote the autoupdate field. --- bucket/7zip-dark.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bucket/7zip-dark.json b/bucket/7zip-dark.json index 99968b74cbb..03dbbcd8c65 100644 --- a/bucket/7zip-dark.json +++ b/bucket/7zip-dark.json @@ -72,21 +72,21 @@ ], "checkver": { "github": "https://github.com/ozone10/7zip-Dark7zip", - "regex": "v(?[\\d.]+)-(?v[\\d.]+)", - "replace": "${version}-${patch}" + "regex": "v(?\\d+)\\.(?\\d+)-(?v[\\d.]+)", + "replace": "${major}.${minor}-${patch}" }, "autoupdate": { "architecture": { "64bit": { "url": [ - "https://www.7-zip.org/a/7z$major$minor-x64.msi", - "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$major.$minor-$matchPatch-x64.zip#/patch.dl" + "https://www.7-zip.org/a/7z${matchMajor}${matchMinor}-x64.msi", + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z${matchMajor}.${matchMinor}-${matchPatch}-x64.zip#/patch.dl" ] }, "arm64": { "url": [ - "https://www.7-zip.org/a/7z$major$minor-arm64.exe", - "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$major.$minor-$matchPatch-arm64.zip#/patch.dl" + "https://www.7-zip.org/a/7z${matchMajor}${matchMinor}-arm64.exe", + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z${matchMajor}.${matchMinor}-${matchPatch}-arm64.zip#/patch.dl" ] } } From d1f894dfb0cff0b0adaf04e77527c4bb5a7fa368 Mon Sep 17 00:00:00 2001 From: z-Fng <54583083+z-Fng@users.noreply.github.com> Date: Mon, 4 May 2026 17:43:20 +0000 Subject: [PATCH 4/4] refactor manifest Updated version and license information, modified URLs for downloads, and adjusted pre-install and post-install scripts. --- bucket/7zip-dark.json | 77 ++++++++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 33 deletions(-) diff --git a/bucket/7zip-dark.json b/bucket/7zip-dark.json index 03dbbcd8c65..9486249b19e 100644 --- a/bucket/7zip-dark.json +++ b/bucket/7zip-dark.json @@ -1,42 +1,50 @@ { - "version": "26.00-v0.48.0", + "version": "26.01-v0.61.0", "description": "A multi-format file archiver with high compression ratios (Dark Mode patched by ozone10)", "homepage": "https://github.com/ozone10/7zip-Dark7zip", - "license": "LGPL-2.1-or-later", + "license": { + "identifier": "MIT,MPL-2.0,BSD-2-Clause,BSD-3-Clause,LGPL-2.1-or-later", + "url": "https://github.com/ozone10/7zip-Dark7zip/blob/main/LICENSE.md" + }, "notes": [ - "Add 7-Zip as a context menu option by running:", + "To avoid Scoop installing a duplicate default 7zip, please execute the following command:", + "scoop config use_external_7zip true", + "", + "To register the context menu entry, please execute the following command:", "reg import \"$dir\\install-context.reg\"", - "This version includes the Dark Mode patch by ozone10 (x64 and arm64 only)." + "", + "If an error occurs while attempting to delete files during uninstallation, run the following command and then retry:", + "Stop-Process -Name 'explorer'" ], "architecture": { "64bit": { "url": [ - "https://www.7-zip.org/a/7z2600-x64.msi", - "https://github.com/ozone10/7zip-Dark7zip/releases/download/v26.00-v0.48.0/7z26.00-v0.48.0-x64.zip#/patch.dl" + "https://github.com/ip7z/7zip/releases/download/26.01/7z2601-x64.msi", + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v26.01-v0.61.0/7z26.01-v0.61.0-x64.zip#/patch.dl" ], "hash": [ - "c388d0444871ca11b21237001af158cfddad7e137851795e5b65cee69b518495", - "89f8583d60168e099284f14940a2c301ef1b8e037416c8bed8c14c081c6d0da6" + "a47ea8dcf8bc08e6de474cae77c828e031fa22cb528f6095defffebf11cd02f2", + "5fab69ad6a906ff06ad497a6954877218819f356c375d52d3bda6b5785ae6e25" ], + "extract_dir": "Files\\7-Zip", "pre_install": [ - "Move-Item \"$dir\\Files\\7-Zip\\*\" \"$dir\" -Force", - "Remove-Item \"$dir\\Files\" -Recurse -Force", "Invoke-ExternalCommand \"$dir\\7z.exe\" @('x', \"$dir\\patch.dl\", \"-o$dir\", '-y') | Out-Null", "Remove-Item \"$dir\\patch.dl\" -Force" ] }, "arm64": { "url": [ - "https://www.7-zip.org/a/7z2600-arm64.exe", - "https://github.com/ozone10/7zip-Dark7zip/releases/download/v26.00-v0.48.0/7z26.00-v0.48.0-arm64.zip#/patch.dl" + "https://github.com/ip7z/7zip/releases/download/26.01/7z2601-arm64.exe", + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v26.01-v0.61.0/7z26.01-v0.61.0-arm64.zip#/patch.dl" ], "hash": [ - "92fac666911336f3bbf3d99fdc48ec36fe20ac7a4200556936e61a8076ae6493", - "99db92902d7be8cfaec9e67fb072fbef33f624d14864519dda388c5da309ba37" + "1fecf4e3407950939c8ffcc3e42e3039821997dea155301c75369474e5f15175", + "8c9af32b1c66ad4b1b8597b054b82719045327fe0dcab8986186600ba8b7133d" ], "pre_install": [ "$7zr = Join-Path $env:TMP '7zr.exe'", - "Invoke-WebRequest https://www.7-zip.org/a/7zr.exe -OutFile $7zr", + "$7zVersion = $version -split '-' | Select-Object -First 1", + "Invoke-WebRequest -Uri \"https://github.com/ip7z/7zip/releases/download/$7zVersion/7zr.exe\" -OutFile $7zr", "$arm_exe = (Get-ChildItem \"$dir\\*-arm64.exe\").FullName", "Invoke-ExternalCommand $7zr @('x', $arm_exe, \"-o$dir\", '-y') | Out-Null", "Invoke-ExternalCommand \"$dir\\7z.exe\" @('x', \"$dir\\patch.dl\", \"-o$dir\", '-y') | Out-Null", @@ -45,50 +53,53 @@ } }, "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", + "$7zip_dir = $dir -replace '\\\\', '\\\\'", + "Get-ChildItem -Path \"$bucketsdir\\main\\scripts\\7-zip\" -Filter '*.reg' -File | ForEach-Object {", + " $content = Get-Content -Path $_.FullName -Encoding utf8", + " if ($global) { $content = $content -replace 'HKEY_CURRENT_USER(?=.+Classes)', 'HKEY_LOCAL_MACHINE' }", + " $content -replace '{{7zip_dir}}', $7zip_dir | Set-Content -Path \"$dir\\$($_.Name)\" -Encoding unicode", "}" ], "bin": [ "7z.exe", - "7zFM.exe", - "7zG.exe" + "7zG.exe", + "7zFM.exe" ], "shortcuts": [ [ "7zFM.exe", - "7-Zip" + "7-Zip\\7-Zip File Manager (Dark Mode)" + ], + [ + "7-zip.chm", + "7-Zip\\7-Zip Help" ] ], "persist": [ "Codecs", "Formats" ], + "uninstaller": { + "script": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" *> $null }" + }, "checkver": { "github": "https://github.com/ozone10/7zip-Dark7zip", - "regex": "v(?\\d+)\\.(?\\d+)-(?v[\\d.]+)", - "replace": "${major}.${minor}-${patch}" + "regex": "v([\\d.]+-v[\\d.]+)" }, "autoupdate": { "architecture": { "64bit": { "url": [ - "https://www.7-zip.org/a/7z${matchMajor}${matchMinor}-x64.msi", - "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z${matchMajor}.${matchMinor}-${matchPatch}-x64.zip#/patch.dl" + "https://github.com/ip7z/7zip/releases/download/$matchHead/7z$majorVersion$minorVersion-x64.msi", + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$version-x64.zip#/patch.dl" ] }, "arm64": { "url": [ - "https://www.7-zip.org/a/7z${matchMajor}${matchMinor}-arm64.exe", - "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z${matchMajor}.${matchMinor}-${matchPatch}-arm64.zip#/patch.dl" + "https://github.com/ip7z/7zip/releases/download/$matchHead/7z$majorVersion$minorVersion-arm64.exe", + "https://github.com/ozone10/7zip-Dark7zip/releases/download/v$version/7z$version-arm64.zip#/patch.dl" ] } } } -} \ No newline at end of file +}