更新 .gitea/workflows/app_update.yml

This commit is contained in:
2025-11-03 02:58:29 -08:00
parent 8f46d5cfd2
commit f753ae6f7a

View File

@@ -32,13 +32,13 @@ jobs:
- name: 下载并解压7-zip
run: |
7Z_VERSION=$(curl -s "https://api.github.com/repos/ip7z/7zip/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/\.//g')
VERSION_7Z=$(curl -s "https://api.github.com/repos/ip7z/7zip/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/\.//g')
7Z_AMD64_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${7Z_VERSION}-linux-x86.tar.xz"
7Z_ARM64_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${7Z_VERSION}-linux-arm64.tar.xz"
7Z_WINDOWS_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${7Z_VERSION}.exe"
7Z_AMD64_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${VERSION_7Z}-linux-x86.tar.xz"
7Z_ARM64_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${VERSION_7Z}-linux-arm64.tar.xz"
7Z_WINDOWS_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${VERSION_7Z}.exe"
echo "下载版本: ${7Z_VERSION}"
echo "下载版本: ${VERSION_7Z}"
curl -L "${7Z_AMD64_URL}" -o "7z-x86.tar.xz" --fail --silent --show-error
curl -L "${7Z_ARM64_URL}" -o "7z-arm64.tar.xz" --fail --silent --show-error
curl -L "${7Z_WINDOWS_URL}" -o "app/7z_windows.exe" --fail --silent --show-error