#!/bin/bash mkdir -p releases # Windows + Apple will fail for now for target in \ "aarch64-unknown-linux-gnu" \ "x86_64-apple-darwin" \ "x86_64-pc-windows-gnu" \ "x86_64-unknown-linux-gnu"; do printf "Building %s\n" $target cross build --release --target $target mkdir -p $target cp target/$target/release/steam_randomiser $target/steam_randomiser cp target/$target/release/steam_randomiser releases/steam_randomiser-$target done # Manual windows generation for now # sudo apt install mingw-w64 target="x86_64-pc-windows-gnu" cargo build --target=$target --release && strip target/$target/release/steam_randomiser.exe cp target/$target/release/steam_randomiser.exe steam_randomiser-$target.exe cp target/$target/release/steam_randomiser.exe releases/steam_randomiser-$target