podcasts/scripts/cargo.sh
Michael Aaron Murphy f24510c078 scripts/cargo.sh: POSIX sh does not support [[
This will fix the build for those building on platforms like Debian / Ubuntu.
2018-11-29 22:02:15 +00:00

16 lines
371 B
Bash
Executable File

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