podcasts/scripts/cargo.sh
Jordan Petridis 569c00ff5f
Allow for parallel development instance
This adds a configuration option in meson, if set it changes the
application ID allowing for stable and development version to be
run at the same time.
2018-08-28 17:22:13 +03:00

17 lines
413 B
Bash
Executable File

#!/bin/sh
export CARGO_HOME=$1/target/cargo-home
export RUSTFLAGS="--cfg rayon_unstable"
export LOCALEDIR="$3"
export APP_ID="$4"
export VERSION="$5"
export PROFILE="$6"
if [[ "$PROFILE" == "Devel" ]]
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