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