Commit 2f843a4d authored by Jordan Petridis's avatar Jordan Petridis 🌱

Merge branch 'patch-1' into 'master'

Support vendored builds / distribution packaging

See merge request World/podcasts!85
parents f9f0dad2 0175609f
Pipeline #43395 passed with stages
in 28 minutes and 42 seconds
#!/bin/sh
#!/bin/bash
set -ex
export CARGO_HOME=$1/target/cargo-home
export LOCALEDIR="$3"
......@@ -6,11 +8,18 @@ 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
TARGET=debug
ARGS=()
if test "$PROFILE" != "Devel"; then
echo "RELEASE MODE"
cargo build --release -p podcasts-gtk && cp $1/target/release/podcasts-gtk $2
fi
\ No newline at end of file
ARGS+=('--release')
TARGET=release
fi
if test -d vendor; then
echo "VENDORED"
ARGS+=('--frozen')
fi
cargo build ${ARGS[@]} -p podcasts-gtk && cp $1/target/${TARGET}/podcasts-gtk $2
\ No newline at end of file
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