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