fractal/scripts/cargo.sh
Daniel García Moreno 57b374e04a Build script with DEBUG and RELEASE mode
I've added the env var CARGO_HOME pointing to target directory to make
it cacheable when you build Fractal with builder to speed up building.

I've also added an env var check to difference between DEBUG mode and
RELEASE mode so you can configure GnomeBuilder to build the debug
version.
2018-01-29 19:32:04 +01:00

12 lines
281 B
Bash
Executable file

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