scripts/cargo.sh: Specify the Cargo.toml location

parent 96248c1a
Pipeline #11241 passed with stage
in 50 minutes 29 seconds
......@@ -5,8 +5,8 @@ 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
cargo build --manifest-path $1/Cargo.toml -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
cargo build --manifest-path $1/Cargo.toml --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