fractal/scripts/cargo.sh

14 lines
371 B
Bash
Raw Normal View History

2017-11-08 11:44:55 +00:00
#!/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