mirror of https://github.com/Xhofe/alist
🎨 fix some warning
parent
3f644f07db
commit
5193b2aa7d
10
build.sh
10
build.sh
|
@ -7,7 +7,7 @@ BUILD_WEB() {
|
||||||
yarn
|
yarn
|
||||||
yarn build
|
yarn build
|
||||||
mv dist ..
|
mv dist ..
|
||||||
cd ..
|
cd .. || exit
|
||||||
rm -rf alist-web
|
rm -rf alist-web
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,9 +71,9 @@ BUILD() {
|
||||||
upx -9 ./alist-windows*
|
upx -9 ./alist-windows*
|
||||||
find . -type f -print0 | xargs -0 md5sum >md5.txt
|
find . -type f -print0 | xargs -0 md5sum >md5.txt
|
||||||
cat md5.txt
|
cat md5.txt
|
||||||
cd ..
|
cd .. || exit
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd .. || exit
|
||||||
}
|
}
|
||||||
|
|
||||||
BUILD_MUSL() {
|
BUILD_MUSL() {
|
||||||
|
@ -113,7 +113,7 @@ BUILD_MUSL() {
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=1
|
||||||
go build -o ./build/$appName-$os_arch -ldflags="$ldflags" -tags=jsoniter alist.go
|
go build -o ./build/$appName-$os_arch -ldflags="$ldflags" -tags=jsoniter alist.go
|
||||||
done
|
done
|
||||||
cd ..
|
cd .. || exit
|
||||||
}
|
}
|
||||||
|
|
||||||
RELEASE() {
|
RELEASE() {
|
||||||
|
@ -133,7 +133,7 @@ RELEASE() {
|
||||||
for i in $(find . -type f -name "$appName-windows-*"); do
|
for i in $(find . -type f -name "$appName-windows-*"); do
|
||||||
zip compress/$(echo $i | sed 's/\.[^.]*$//').zip "$i"
|
zip compress/$(echo $i | sed 's/\.[^.]*$//').zip "$i"
|
||||||
done
|
done
|
||||||
cd ../..
|
cd ../.. || exit
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" = "web" ]; then
|
if [ "$1" = "web" ]; then
|
||||||
|
|
Loading…
Reference in New Issue