From 5b4e5263299bc0055bc43dda506c930719fe5893 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 20 Jul 2026 11:57:41 +0200 Subject: [PATCH] tools.func: add support for extracting 7z archives (#15919) --- misc/tools.func | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/misc/tools.func b/misc/tools.func index af82098dc..1cc7dc257 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -2587,6 +2587,16 @@ _deploy_unpacked_archive() { msg_error "Failed to extract TAR archive" return 251 } + elif [[ "$filename" == *.7z ]]; then + if [[ -f /etc/alpine-release ]]; then + ensure_dependencies 7zip + else + ensure_dependencies p7zip-full + fi + 7z x -y -o"$workdir" "$archive" >/dev/null 2>&1 || { + msg_error "Failed to extract 7z archive" + return 251 + } else msg_error "Unsupported archive format: $filename" return 65