aboutsummaryrefslogtreecommitdiff
path: root/prepare_binaries.sh
diff options
context:
space:
mode:
Diffstat (limited to 'prepare_binaries.sh')
-rwxr-xr-xprepare_binaries.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/prepare_binaries.sh b/prepare_binaries.sh
new file mode 100755
index 0000000..ad74552
--- /dev/null
+++ b/prepare_binaries.sh
@@ -0,0 +1,13 @@
1#!/bin/sh
2
3if [ "$1" = "linux" ]; then
4 rustup target install x86_64-unknown-linux-musl || exit 1
5 cargo build --target-dir target/ --target x86_64-unknown-linux-musl --release || exit 1
6 mv target/x86_64-unknown-linux-musl/release/dotup "dotup_x86_64-unknown-linux-musl"
7fi
8
9if [ "$1" = "macos" ]; then
10 rustup target install x86_64-apple-darwin || exit 1
11 cargo build --target-dir target/ --target x86_64-apple-darwin --release || exit 1
12 mv target/x86_64-apple-darwin/release/dotup "dotup_x86_64-apple-darwin"
13fi