Skip to content

Commit

Permalink
custom build
Browse files Browse the repository at this point in the history
fallenwood committed Oct 10, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0b64b13 commit f860fb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -7,6 +7,9 @@ gitCommit=$(git log --pretty=format:"%h" -1)
if [ "$1" = "dev" ]; then
version="dev"
webVersion="dev"
elif [ "$1" = "local" ]; then
version="local"
webVersion="local"
else
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')
@@ -204,6 +207,8 @@ elif [ "$1" = "release" ]; then
BuildRelease
MakeRelease "md5.txt"
fi
elif [ "$1" = "local" ]; then
BuildDocker
else
echo -e "Parameter error"
fi

0 comments on commit f860fb5

Please sign in to comment.