This adds a configuration option in meson, if set it changes the application ID allowing for stable and development version to be run at the same time.
17 lines
413 B
Bash
Executable File
17 lines
413 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export CARGO_HOME=$1/target/cargo-home
|
|
export RUSTFLAGS="--cfg rayon_unstable"
|
|
export LOCALEDIR="$3"
|
|
export APP_ID="$4"
|
|
export VERSION="$5"
|
|
export PROFILE="$6"
|
|
|
|
if [[ "$PROFILE" == "Devel" ]]
|
|
then
|
|
echo "DEBUG MODE"
|
|
cargo build -p podcasts-gtk && cp $1/target/debug/podcasts-gtk $2
|
|
else
|
|
echo "RELEASE MODE"
|
|
cargo build --release -p podcasts-gtk && cp $1/target/release/podcasts-gtk $2
|
|
fi |