add script to build release binaries

This commit is contained in:
kageru 2020-04-13 13:10:23 +02:00
parent 8529163d68
commit 7b2a14deaf
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

10
build_release.sh Executable file

@ -0,0 +1,10 @@
#!/bin/sh
# set rustflags as empty to make sure we’re not building for march=native,
# as these are public release builds
RUSTFLAGS="" cargo build --release --locked
RUSTFLAGS="" cargo build --release --target=x86_64-pc-windows-gnu --locked
mv target/release/libadaptivegrain_rs.so ./
mv target/x86_64-pc-windows-gnu/release/adaptivegrain_rs.dll ./
strip libadaptivegrain_rs.so
strip adaptivegrain_rs.dll