更新 .gitea/workflows/app_update.yml
This commit is contained in:
@@ -32,11 +32,11 @@ jobs:
|
||||
|
||||
- name: 下载并解压7-zip
|
||||
run: |
|
||||
VERSION_7Z=$(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/')
|
||||
|
||||
AMD64_7Z_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${VERSION_7Z}-linux-x86.tar.xz"
|
||||
ARM64_7Z_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${VERSION_7Z}-linux-arm64.tar.xz"
|
||||
WINDOWS_7Z_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${VERSION_7Z}.exe"
|
||||
AMD64_7Z_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${VERSION_7Z/./}-linux-x86.tar.xz"
|
||||
ARM64_7Z_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${VERSION_7Z/./}-linux-arm64.tar.xz"
|
||||
WINDOWS_7Z_URL="https://github.com/ip7z/7zip/releases/latest/download/7z${VERSION_7Z/./}.exe"
|
||||
|
||||
echo "下载版本: ${VERSION_7Z}"
|
||||
curl -L "${AMD64_7Z_URL}" -o "7z-x86.tar.xz" --fail --silent --show-error
|
||||
|
||||
Reference in New Issue
Block a user