@@ -184,7 +184,7 @@ while (( "$#" )); do
184184 OPEN_AFTER_BUNDLE=true
185185 shift
186186 ;;
187- # Specify the release channel (local, dev, preview, stable)
187+ # Specify the release channel (local, dev, preview, stable, oss )
188188 -c|--channel)
189189 if [ -n " $2 " ] && [ " ${2: 0: 1} " != " -" ]; then
190190 RELEASE_CHANNEL=$2
@@ -296,6 +296,14 @@ elif [[ $RELEASE_CHANNEL = "stable" ]]; then
296296 BUNDLE_ID=" dev.warp.Warp-Stable"
297297 WARP_APP_NAME=" Warp"
298298 WARP_SCHEME_NAME=" warp"
299+ elif [[ $RELEASE_CHANNEL = " oss" ]]; then
300+ WARP_BIN=" warp-oss"
301+ BUNDLE_ID=" dev.warp.WarpOss"
302+ WARP_APP_NAME=" WarpOss"
303+ WARP_SCHEME_NAME=" warposs"
304+ # The OSS channel does not ship Sentry, so drop the cocoa_sentry feature
305+ # (which would otherwise pull in the Sentry framework dependency).
306+ FEATURES=" release_bundle,extern_plist"
299307fi
300308
301309OUT_DIR=" target/$TARGET_PROFILE_DIR /bundle/osx"
@@ -510,9 +518,12 @@ if [[ "$ARTIFACT" == "app" ]]; then
510518 " $WORKSPACE_ROOT_DIR /script/prepare_bundled_pprof" " $HELPERS_DIR "
511519 fi
512520
513- # Determine CLI wrapper script path based on release channel
521+ # Determine CLI wrapper script path based on release channel. Each channel's
522+ # value here must match `Channel::cli_command_name` in the Rust source.
514523 if [[ $RELEASE_CHANNEL = " stable" ]]; then
515524 CLI_SCRIPT_PATH=" $BUNDLED_RESOURCES_DIR /bin/oz"
525+ elif [[ $RELEASE_CHANNEL = " oss" ]]; then
526+ CLI_SCRIPT_PATH=" $BUNDLED_RESOURCES_DIR /bin/warp-oss"
516527 else
517528 CLI_SCRIPT_PATH=" $BUNDLED_RESOURCES_DIR /bin/oz-$RELEASE_CHANNEL "
518529 fi
0 commit comments