euler/build

15 lines
442 B
Text
Raw Normal View History

2024-10-09 17:10:10 +00:00
#!/bin/bash
cargo build --release --bin "[0-9]*" -q
cargo build --release --bin "[0-9]*" -q --target x86_64-pc-windows-gnu
find ./target/release -maxdepth 1 -type f -perm 755 | while read file; do
arr=(${file//\// })
2024-10-09 17:10:11 +00:00
mv $file binaries/linux/${arr[3]} > /dev/null
2024-10-09 17:10:10 +00:00
done
find ./target/x86_64-pc-windows-gnu/release -maxdepth 1 -type f -perm 755 | while read file; do
arr=(${file//\// })
2024-10-09 17:10:11 +00:00
mv $file binaries/win64/${arr[4]} > /dev/null
2024-10-09 17:10:10 +00:00
done