From 7b2a14deaf0c3ca8c74835e69520a148873a3188 Mon Sep 17 00:00:00 2001 From: kageru Date: Mon, 13 Apr 2020 13:10:23 +0200 Subject: [PATCH] add script to build release binaries --- build_release.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 build_release.sh diff --git a/build_release.sh b/build_release.sh new file mode 100755 index 0000000..aec8fd5 --- /dev/null +++ b/build_release.sh @@ -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