diff options
Diffstat (limited to 'prepare_binaries.sh')
| -rwxr-xr-x | prepare_binaries.sh | 13 |
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 | |||
| 3 | if [ "$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" | ||
| 7 | fi | ||
| 8 | |||
| 9 | if [ "$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" | ||
| 13 | fi | ||
