podcasts/scripts/cargo.sh
2018-08-18 16:25:43 +03:00

14 lines
355 B
Bash
Executable File

#!/bin/sh
export CARGO_HOME=$1/target/cargo-home
export RUSTFLAGS="--cfg rayon_unstable"
export PODCASTS_LOCALEDIR="$3"
if [[ $DEBUG = true ]]
then
echo "DEBUG MODE"
cargo build -p podcasts-gtk && cp $1/target/debug/podcasts-gtk $2
else
echo "RELEASE MODE"
cargo build --release -p podcasts-gtk && cp $1/target/release/podcasts-gtk $2
fi