diff --git a/core/build-startbox.sh b/core/build-startbox.sh index 72f0f5ac0..b5a3ae943 100755 --- a/core/build-startbox.sh +++ b/core/build-startbox.sh @@ -33,4 +33,4 @@ fi echo "FEATURES=\"$FEATURES\"" echo "RUSTFLAGS=\"$RUSTFLAGS\"" -cross build --manifest-path=./core/Cargo.toml $BUILD_FLAGS --no-default-features --features cli,startd,$FEATURES --locked --bin startbox --target=$RUST_ARCH-unknown-linux-musl \ No newline at end of file +cross build --manifest-path=./core/Cargo.toml $BUILD_FLAGS --no-default-features --features cli,startd,$FEATURES --locked --bin startbox --target=$RUST_ARCH-unknown-linux-musl diff --git a/core/build-ts.sh b/core/build-ts.sh index 05e6599ab..e29a43a66 100755 --- a/core/build-ts.sh +++ b/core/build-ts.sh @@ -5,6 +5,11 @@ cd "$(dirname "${BASH_SOURCE[0]}")" set -ea shopt -s expand_aliases +PROFILE=${PROFILE:-release} +if [ "${PROFILE}" = "release" ]; then + BUILD_FLAGS="--release" +fi + if [ -z "$ARCH" ]; then ARCH=$(uname -m) fi @@ -26,4 +31,4 @@ if [[ "${ENVIRONMENT}" =~ (^|-)console($|-) ]]; then fi echo "FEATURES=\"$FEATURES\"" echo "RUSTFLAGS=\"$RUSTFLAGS\"" -cross test --manifest-path=./core/Cargo.toml --no-default-features --features test,$FEATURES --locked 'export_bindings_' +cross test --manifest-path=./core/Cargo.toml $BUILD_FLAGS --no-default-features --features test,$FEATURES --locked 'export_bindings_'