-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease.sh
executable file
·28 lines (21 loc) · 986 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
printf "Building for windows...\n"
cargo build --release --target x86_64-pc-windows-gnu
printf "\nBuilding for macos...\n"
cargo build --release --target x86_64-apple-darwin
cargo build --release --target aarch64-apple-darwin
printf "\nBuilding for linux...\n"
cargo build --release --target x86_64-unknown-linux-musl
cargo build --release --target aarch64-unknown-linux-musl
printf "\nCleaning up...\n"
rm -vrf ./release/
mkdir ./release/
printf "\nCollecting release builds...\n"
cp ./target/x86_64-pc-windows-gnu/release/deeztest.exe ./release/deeztest-windows-x64.exe
cp ./target/x86_64-apple-darwin/release/deeztest ./release/deeztest-macos-x64
cp ./target/aarch64-apple-darwin/release/deeztest ./release/deeztest-macos-arm64
cp ./target/x86_64-unknown-linux-musl/release/deeztest ./release/deeztest-linux-x64
cp ./target/aarch64-unknown-linux-musl/release/deeztest ./release/deeztest-linux-arm64
printf "\nShowing overview...\n"
ls -lah release/*
file release/*