From 9d60e7034ced18a0a986a68b411a3436e0336254 Mon Sep 17 00:00:00 2001 From: zu1k Date: Thu, 4 Nov 2021 09:54:06 +0800 Subject: [PATCH] chore: Add build script for windows --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b3a1ff0..f8bc73a 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,13 @@ xbuild: xargo build --target $(TARGET) --release min: - strip -s target/$(TARGET)/release/$(NAME) - upx --best target/$(TARGET)/release/$(NAME) + strip -s "target/$(TARGET)/release/$(NAME)" + upx --best "target/$(TARGET)/release/$(NAME)" + +windows: + xargo build --target x86_64-pc-windows-gnu --release + strip -s "target/x86_64-pc-windows-gnu/release/$(NAME).exe" + upx --best "target/x86_64-pc-windows-gnu/release/$(NAME).exe" clean: cargo clean