💚 fix macOS build

This commit is contained in:
微凉 2021-11-04 16:54:35 +08:00
parent 4da655cc44
commit 1c56d27e20

View File

@ -26,7 +26,7 @@ cp -R ../alist-web/dist/* public
if [ "$1" == "release" ]; then
xgo -out alist -ldflags="$ldflags" .
else
xgo -targets=linux/amd64,windows/amd64,macos/amd64 -out alist -ldflags="$ldflags" .
xgo -targets=linux/amd64,windows/amd64,darwin/amd64 -out alist -ldflags="$ldflags" .
fi
mkdir "build"
mv alist-* build