diff --git a/build.sh b/build.sh index b5047b73..1d1fcfc1 100644 --- a/build.sh +++ b/build.sh @@ -59,7 +59,8 @@ BuildDev() { mv alist-* dist cd dist upx -9 ./alist-linux* - upx -9 ./alist-windows-amd64.exe + cp ./alist-windows-amd64.exe ./alist-windows-amd64-upx.exe + upx -9 ./alist-windows-amd64-upx.exe find . -type f -print0 | xargs -0 md5sum >md5.txt cat md5.txt } @@ -95,7 +96,8 @@ BuildRelease() { xgo -out "$appName" -ldflags="$ldflags" -tags=jsoniter . # why? Because some target platforms seem to have issues with upx compression upx -9 ./alist-linux-amd64 - upx -9 ./alist-windows-amd64.exe + cp ./alist-windows-amd64.exe ./alist-windows-amd64-upx.exe + upx -9 ./alist-windows-amd64-upx.exe mv alist-* build }