From ab2df215a96243c395ac31e8e00d67de04fa3429 Mon Sep 17 00:00:00 2001 From: Nikita Galaiko Date: Fri, 21 Jul 2023 13:05:46 +0200 Subject: [PATCH] activate devtools nightly --- scripts/release.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index d1a275b74..bcf3e0b99 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -191,8 +191,17 @@ CONFIG_PATH=$(readlink -f "$PWD/../src-tauri/tauri.conf.$CHANNEL.json") # update the version in the tauri release config jq '.package.version="'"$VERSION"'"' "$CONFIG_PATH" >"$TMP_DIR/tauri.conf.json" + +FEATURES="" + +if [ "$CHANNEL" == "nightly" ]; then + FEATURES="$FEATURES devtools" +fi + # build the app with release config -SENTRY_RELEASE="$VERSION" tauri build --verbose --config "$TMP_DIR/tauri.conf.json" +SENTRY_RELEASE="$VERSION" tauri build \ + --features "$FEATURES" \ + --config "$TMP_DIR/tauri.conf.json" BUNDLE_DIR=$(readlink -f "$PWD/../src-tauri/target/release/bundle") MACOS_DMG="$(find "$BUNDLE_DIR/dmg" -depth 1 -type f -name "*.dmg")"