From 0348f379e1912b4e2f06e3d6f14127e809383ea8 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Thu, 29 Nov 2018 23:38:30 +0000 Subject: [PATCH] Fix target directory --- scripts/cargo.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/cargo.sh b/scripts/cargo.sh index 278ab72..eff0bb5 100755 --- a/scripts/cargo.sh +++ b/scripts/cargo.sh @@ -8,11 +8,13 @@ export APP_ID="$4" export VERSION="$5" export PROFILE="$6" +TARGET=debug ARGS=() if test "$PROFILE" != "Devel"; then echo "RELEASE MODE" ARGS+=('--release') + TARGET=release fi if test -d vendor; then @@ -20,4 +22,4 @@ if test -d vendor; then ARGS+=('--frozen') fi -cargo build ${ARGS[@]} -p podcasts-gtk && cp $1/target/release/podcasts-gtk $2 \ No newline at end of file +cargo build ${ARGS[@]} -p podcasts-gtk && cp $1/target/${TARGET}/podcasts-gtk $2 \ No newline at end of file