From b6451451b19c4584a41cac5d890fd369cf76bab8 Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Tue, 17 Sep 2024 01:37:14 +0800 Subject: [PATCH] fix: release version (close #7182) --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 5a7d0d666ef..18a30e633c2 100644 --- a/build.sh +++ b/build.sh @@ -8,6 +8,7 @@ if [ "$1" = "dev" ]; then version="dev" webVersion="dev" else + git tag -d beta version=$(git describe --abbrev=0 --tags) webVersion=$(wget -qO- -t1 -T2 "https://api.github.com/repos/alist-org/alist-web/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g') fi