-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomplie_all.sh
More file actions
executable file
·26 lines (21 loc) · 899 Bytes
/
Copy pathcomplie_all.sh
File metadata and controls
executable file
·26 lines (21 loc) · 899 Bytes
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
#!/bin/bash
cargo update
# compile for Apple Silicon
cargo b --release --target aarch64-apple-darwin
# compile for Apple Intel
cargo b --release --target x86_64-apple-darwin
# compile for Linux Arm
cargo b --release --target aarch64-unknown-linux-gnu
# compile for Linux Intel
cargo b --release --target x86_64-unknown-linux-gnu
# compile for Windows Intel
cargo b --release --target x86_64-pc-windows-gnu
# create the dist folder
[ -d dist ] || mkdir -p dist/
# copy the release files into the dist folder
cp target/aarch64-apple-darwin/release/traffiq dist/traffiq_macos-aarch64
cp target/x86_64-apple-darwin/release/traffiq dist/traffiq_macos-x86_64
cp target/aarch64-unknown-linux-gnu/release/traffiq dist/traffiq_linux-aarch64
cp target/x86_64-unknown-linux-gnu/release/traffiq dist/traffiq_linux-x86_64
cp target/x86_64-pc-windows-gnu/release/traffiq.exe dist/traffiq_win-x86_64.exe
# EOF