Support vendored builds
This commit is contained in:
parent
f24510c078
commit
f7b9de5d24
@ -1,4 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
export CARGO_HOME=$1/target/cargo-home
|
export CARGO_HOME=$1/target/cargo-home
|
||||||
export LOCALEDIR="$3"
|
export LOCALEDIR="$3"
|
||||||
@ -6,11 +8,16 @@ export APP_ID="$4"
|
|||||||
export VERSION="$5"
|
export VERSION="$5"
|
||||||
export PROFILE="$6"
|
export PROFILE="$6"
|
||||||
|
|
||||||
if test "$PROFILE" = "Devel"
|
ARGS=()
|
||||||
then
|
|
||||||
echo "DEBUG MODE"
|
if test "$PROFILE" != "Devel"; then
|
||||||
cargo build -p podcasts-gtk && cp $1/target/debug/podcasts-gtk $2
|
|
||||||
else
|
|
||||||
echo "RELEASE MODE"
|
echo "RELEASE MODE"
|
||||||
cargo build --release -p podcasts-gtk && cp $1/target/release/podcasts-gtk $2
|
ARGS+=('--release')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -d vendor; then
|
||||||
|
echo "VENDORED"
|
||||||
|
ARGS+=('--frozen')
|
||||||
|
fi
|
||||||
|
|
||||||
|
cargo build ${ARGS[@]} -p podcasts-gtk && cp $1/target/release/podcasts-gtk $2
|
||||||
Loading…
Reference in New Issue
Block a user