Skip to content

Commit

Permalink
chore: Add build script for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zu1k committed Nov 4, 2021
1 parent 1aa5746 commit 9d60e70
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d60e70

Please sign in to comment.