build: rm .git before xgo

This commit is contained in:
Xhofe
2022-04-24 16:53:47 +08:00
parent 42c0e438d5
commit 08aaa5e2c0
3 changed files with 5 additions and 4 deletions

View File

@ -61,6 +61,7 @@ BUILD() {
-X 'github.com/Xhofe/alist/conf.GitTag=$gitTag' \
-X 'github.com/Xhofe/alist/conf.WebTag=$webTag' \
"
rm -rf .git/
if [ "$1" == "release" ]; then
xgo -out "$appName" -ldflags="$ldflags" -tags=jsoniter .
else