更新 OpenWrt/upload.sh

Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
zhao 2025-04-02 00:45:04 +08:00
parent fdbb96a204
commit 328ce7fe71

View File

@ -8,18 +8,11 @@ REPO="oppen321/ZeroWrt-Action"
echo "➜ 下载GitHub Release文件..."
# 根据架构选择对应的tag
case "$model" in
"x86_64")
if [ "$model" = "x86_64" ]; then
TAG="OpenWrt-X86_64-24.10"
;;
"rockchip")
elif [ "$model" = "rockchip" ]; then
TAG="OpenWrt-Rockchip-24.10"
;;
*)
echo "❌ 不支持的架构: $model"
exit 1
;;
esac
fi
RELEASE_URL="https://api.github.com/repos/$REPO/releases/tags/$TAG"
ASSETS=$(curl -sSL "$RELEASE_URL" | jq -r '.assets[] | .browser_download_url')