57b374e04a
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.
12 lines
281 B
Bash
Executable file
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
|