Fix target directory
This commit is contained in:
parent
f7b9de5d24
commit
0348f379e1
@ -8,11 +8,13 @@ export APP_ID="$4"
|
|||||||
export VERSION="$5"
|
export VERSION="$5"
|
||||||
export PROFILE="$6"
|
export PROFILE="$6"
|
||||||
|
|
||||||
|
TARGET=debug
|
||||||
ARGS=()
|
ARGS=()
|
||||||
|
|
||||||
if test "$PROFILE" != "Devel"; then
|
if test "$PROFILE" != "Devel"; then
|
||||||
echo "RELEASE MODE"
|
echo "RELEASE MODE"
|
||||||
ARGS+=('--release')
|
ARGS+=('--release')
|
||||||
|
TARGET=release
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -d vendor; then
|
if test -d vendor; then
|
||||||
@ -20,4 +22,4 @@ if test -d vendor; then
|
|||||||
ARGS+=('--frozen')
|
ARGS+=('--frozen')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cargo build ${ARGS[@]} -p podcasts-gtk && cp $1/target/release/podcasts-gtk $2
|
cargo build ${ARGS[@]} -p podcasts-gtk && cp $1/target/${TARGET}/podcasts-gtk $2
|
||||||
Loading…
Reference in New Issue
Block a user