From fed9fd9db87ab10fd9b857c0d1b8629165e0c0b8 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 14 Jan 2026 09:27:14 +0100 Subject: [PATCH] fixes tag name github --- install/papra-install.sh | 6 +++--- misc/tools.func | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/install/papra-install.sh b/install/papra-install.sh index efb8cfff0..7a5134881 100644 --- a/install/papra-install.sh +++ b/install/papra-install.sh @@ -15,9 +15,9 @@ update_os msg_info "Installing Dependencies" $STD apt install -y \ - build-essential \ - tesseract-ocr \ - tesseract-ocr-all + build-essential \ + tesseract-ocr \ + tesseract-ocr-all msg_ok "Installed Dependencies" NODE_VERSION="24" setup_nodejs diff --git a/misc/tools.func b/misc/tools.func index dc9c39a8d..52479f658 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -1770,7 +1770,9 @@ function fetch_and_deploy_gh_release() { if [[ "$mode" == "tarball" || "$mode" == "source" ]]; then # GitHub API's tarball_url/zipball_url can return HTTP 300 Multiple Choices # when a branch and tag share the same name. Use explicit refs/tags/ URL instead. - local direct_tarball_url="https://github.com/$repo/archive/refs/tags/$tag_name.tar.gz" + # URL-encode @ symbols in tag names + local encoded_tag_name="${tag_name//@/%40}" + local direct_tarball_url="https://github.com/$repo/archive/refs/tags/$encoded_tag_name.tar.gz" filename="${app_lc}-${version}.tar.gz" curl $download_timeout -fsSL -o "$tmpdir/$filename" "$direct_tarball_url" || {