makefile/linux: don't upx, but xz harder, for faster startup

This commit is contained in:
mappu 2024-06-30 10:45:19 +12:00
parent 18674568dd
commit e5cbbb6822

View File

@ -21,7 +21,6 @@ liblcl.dll: liblcl-2.2.3.zip
yvbolt: $(SOURCES) yvbolt: $(SOURCES)
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -trimpath -ldflags '-s -w' GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -trimpath -ldflags '-s -w'
chmod 755 yvbolt chmod 755 yvbolt
upx --best yvbolt
yvbolt.exe: $(SOURCES) 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' 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 yvbolt.linux64.tar.xz: yvbolt liblcl.so
rm -f yvbolt.linux64.tar.xz 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 yvbolt.win64.zip: yvbolt.exe liblcl.dll
rm -f yvbolt.win64.zip rm -f yvbolt.win64.zip