fractal/scripts/cargo.sh
Jordan Petridis 49769c7cad build: Cache CARGO_HOME again
This was accidentally deleted in 1905a2b5d1
2018-06-22 18:16:23 +00:00

13 lines
371 B
Bash
Executable file

#!/bin/sh
export CARGO_HOME=$1/target/cargo-home
export FRACTAL_LOCALEDIR="$3"
if [[ $DEBUG = true ]]
then
echo "DEBUG MODE"
cargo build --manifest-path $1/Cargo.toml -p fractal-gtk && cp $1/target/debug/fractal-gtk $2
else
echo "RELEASE MODE"
cargo build --manifest-path $1/Cargo.toml --release -p fractal-gtk && cp $1/target/release/fractal-gtk $2
fi