makefile/linux: don't upx, but xz harder, for faster startup
This commit is contained in:
parent
18674568dd
commit
e5cbbb6822
3
Makefile
3
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
|
||||
|
Loading…
Reference in New Issue
Block a user