1
0
Fork 0
mirror of https://github.com/nachoparker/dutree synced 2024-05-11 23:46:06 +02:00

Add build script to build

target include ARMv7 ARM64 x86_64
This commit is contained in:
Lucian I. Last 2022-06-29 10:42:22 +02:00
parent 44e877d148
commit f9249d0968
2 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/target/
**/*.rs.bk
.*.swp
/dutree*

17
build.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
cargo install cross
echo "Building... Linux ARM64"
cross build --release --target aarch64-unknown-linux-gnu
mv target/aarch64-unknown-linux-gnu/release/dutree ./dutree_linux_arm64
echo "Building... Linux ARMv7"
cross build --release --target armv7-unknown-linux-gnueabihf
mv target/armv7-unknown-linux-gnueabihf/release/dutree ./dutree_linux_arm7
echo "Building... Linux x86_64"
cross build --release --target x86_64-unknown-linux-gnu
mv target/x86_64-unknown-linux-gnu/release/dutree ./dutree_linux_x86_64
echo "Done"