Add script to build static binary and put it in ./

This commit is contained in:
Andrew Phillips
2023-08-31 19:39:23 +00:00
parent 49a77f9090
commit 5910ef0b4a

7
build-static.bash Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -ex
export RUSTFLAGS='-C target-feature=+crt-static'
cargo build --release --target x86_64-unknown-linux-gnu
cp target/x86_64-unknown-linux-gnu/release/keep-rust ./