build script

This commit is contained in:
FliegendeWurst 2021-04-14 17:05:07 +02:00
parent 701fbb41c8
commit 4f05385841

10
build.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl
strip target/release/KIT-ILIAS-downloader
rustup target add x86_64-pc-windows-gnu
# if on Debian or similar
sudo apt install mingw-w64
cargo build --release --target x86_64-pc-windows-gnu
strip target/x86_64-pc-windows-gnu/release/KIT-ILIAS-downloader