cargo.sh 373 Bytes
Newer Older
Jordan Petridis's avatar
Jordan Petridis committed
1 2
#!/bin/sh

3
export CARGO_HOME=$1/target/cargo-home
4 5 6 7
export LOCALEDIR="$3"
export APP_ID="$4"
export VERSION="$5"
export PROFILE="$6"
8

9
if [[ "$PROFILE" == "Devel" ]]
10 11
then
    echo "DEBUG MODE"
12
    cargo build -p podcasts-gtk && cp $1/target/debug/podcasts-gtk $2
13 14
else
    echo "RELEASE MODE"
15
    cargo build --release -p podcasts-gtk && cp $1/target/release/podcasts-gtk $2
Jordan Petridis's avatar
Jordan Petridis committed
16
fi