Commit 57b374e0 authored by Daniel García Moreno's avatar Daniel García Moreno

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.
parent 503e311e
#!/bin/sh
cargo build --release -p fractal-gtk && cp $1/target/release/fractal-gtk $2
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment