From fe3dd3c6525caae311607d4c5f016e368a610ecf Mon Sep 17 00:00:00 2001 From: zhao Date: Wed, 2 Apr 2025 00:55:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20OpenWrt/upload.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- OpenWrt/upload.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/OpenWrt/upload.sh b/OpenWrt/upload.sh index 766bc0a..a83c834 100644 --- a/OpenWrt/upload.sh +++ b/OpenWrt/upload.sh @@ -9,12 +9,11 @@ echo "➜ 下载GitHub Release文件..." # 根据架构选择对应的tag if [ "$model" = "x86_64" ]; then - TAG="OpenWrt-X86_64-24.10" + RELEASE_URL="https://api.github.com/repos/oppen321/ZeroWrt-Action/git/refs/tags/OpenWrt-X86_64-24.10" elif [ "$model" = "rockchip" ]; then - TAG="OpenWrt-Rockchip-24.10" + RELEASE_URL="https://api.github.com/repos/oppen321/ZeroWrt-Action/git/refs/tags/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') if [ -z "$ASSETS" ]; then @@ -28,4 +27,6 @@ cd ./downloads for url in $ASSETS; do echo "正在下载: $(basename "$url")" wget -q --show-progress "$url" -done \ No newline at end of file +done + +rename 's/^openwrt/zerowrt-plus-$(date "+%Y%m%d")/' openwrt*