From e5cbbb6822eee31f7407eee970fcf77b2f730712 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 30 Jun 2024 10:45:19 +1200 Subject: [PATCH] makefile/linux: don't upx, but xz harder, for faster startup --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 55e7517..df928fb 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,6 @@ liblcl.dll: liblcl-2.2.3.zip yvbolt: $(SOURCES) GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -trimpath -ldflags '-s -w' chmod 755 yvbolt - upx --best yvbolt yvbolt.exe: $(SOURCES) GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc-win32 go build -trimpath -ldflags '-s -w -H windowsgui' @@ -29,7 +28,7 @@ yvbolt.exe: $(SOURCES) yvbolt.linux64.tar.xz: yvbolt liblcl.so rm -f yvbolt.linux64.tar.xz - XZ_OPT='--best' tar caf yvbolt.linux64.tar.xz --owner=0 --group=0 yvbolt liblcl.so + XZ_OPT='-T0 -9' tar caf yvbolt.linux64.tar.xz --owner=0 --group=0 yvbolt liblcl.so yvbolt.win64.zip: yvbolt.exe liblcl.dll rm -f yvbolt.win64.zip