From 67413015e8a0611c4d9aa988cf1d88832ebaff6d Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Thu, 6 Apr 2023 21:38:57 +0800 Subject: [PATCH] ci: use non-upx prebuilt for windows by default --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 }