2017-11-08 11:44:55 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-06-22 18:16:23 +00:00
|
|
|
export CARGO_HOME=$1/target/cargo-home
|
2018-05-18 08:34:17 +00:00
|
|
|
export FRACTAL_LOCALEDIR="$3"
|
2018-08-23 21:46:36 +00:00
|
|
|
export FRACTAL_APP_ID="$4"
|
|
|
|
export FRACTAL_NAME_SUFFIX="$5"
|
|
|
|
export FRACTAL_VERSION="$6"
|
|
|
|
export FRACTAL_PROFILE="$7"
|
2018-01-29 18:32:04 +00:00
|
|
|
|
2018-08-23 21:46:36 +00:00
|
|
|
if [[ "$FRACTAL_PROFILE" == "Devel" ]]
|
2018-01-29 18:32:04 +00:00
|
|
|
then
|
|
|
|
echo "DEBUG MODE"
|
2018-05-10 14:55:49 +00:00
|
|
|
cargo build --manifest-path $1/Cargo.toml -p fractal-gtk && cp $1/target/debug/fractal-gtk $2
|
2018-01-29 18:32:04 +00:00
|
|
|
else
|
|
|
|
echo "RELEASE MODE"
|
2018-05-10 14:55:49 +00:00
|
|
|
cargo build --manifest-path $1/Cargo.toml --release -p fractal-gtk && cp $1/target/release/fractal-gtk $2
|
2018-01-29 18:32:04 +00:00
|
|
|
fi
|