Fix target directory
This commit is contained in:
parent
f7b9de5d24
commit
0348f379e1
@ -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
|
||||
cargo build ${ARGS[@]} -p podcasts-gtk && cp $1/target/${TARGET}/podcasts-gtk $2
|
||||
Loading…
Reference in New Issue
Block a user