20 lines
881 B
Diff
20 lines
881 B
Diff
|
--- a/scripts/cargo.sh 2020-04-05 12:57:04.625108145 +0200
|
||
|
+++ b/scripts/cargo.sh 2020-04-05 12:57:29.301224990 +0200
|
||
|
@@ -2,14 +2,13 @@
|
||
|
|
||
|
export OUTPUT="$2"
|
||
|
export CARGO_TARGET_DIR="$3"/target
|
||
|
-export CARGO_HOME="$CARGO_TARGET_DIR"/cargo-home
|
||
|
export FRACTAL_PROFILE="$4"
|
||
|
|
||
|
if [ "$FRACTAL_PROFILE" = "Devel" ]
|
||
|
then
|
||
|
echo "DEBUG MODE"
|
||
|
- cargo build --manifest-path $1/Cargo.toml -p fractal-gtk && cp "$CARGO_TARGET_DIR"/debug/fractal-gtk "$OUTPUT"
|
||
|
+ cargo build --frozen --manifest-path $1/Cargo.toml -p fractal-gtk && cp "$CARGO_TARGET_DIR"/debug/fractal-gtk "$OUTPUT"
|
||
|
else
|
||
|
echo "RELEASE MODE"
|
||
|
- cargo build --manifest-path $1/Cargo.toml --release -p fractal-gtk && cp "$CARGO_TARGET_DIR"/release/fractal-gtk "$OUTPUT"
|
||
|
+ cargo build --frozen --manifest-path $1/Cargo.toml --release -p fractal-gtk && cp "$CARGO_TARGET_DIR"/release/fractal-gtk "$OUTPUT"
|
||
|
fi
|