From be3453eccfa4b93d85e30bff07e8c55549b578f8 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 20 Jul 2026 11:18:42 +0200 Subject: [PATCH] tools.func: add support for extracting 7z archives --- misc/tools.func | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/misc/tools.func b/misc/tools.func index cc5e66162..9a3a3df4e 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