ci: fix web build name

This commit is contained in:
levi committed 2022-11-01 16:05:57 +08:00
1 parent cf60e5a60a
commit 56561ba764
1 file changed
+2 -1
+2 -1
View File
@@ -201,7 +201,8 @@ jobs:
dir="dist/gopeed-$VERSION-$goos-$goarch/"
(GOOS=$goos GOARCH=$goarch go build -tags nosqlite,web -ldflags="-s -w" -o $dir github.com/monkeyWie/gopeed/cmd/web \
&& cd $dir \
&& rename 's/^web/gopeed/' * \
&& file=$(ls -AU | head -1) \
&& mv $file $(echo $file | sed -e "s/web/gopeed/g") \
&& zip -r ../zip/gopeed-web-$VERSION-$goos-$goarch.zip * \
&& cd ../..) \
|| true