Warp to Galaxy internal rebrand

This commit is contained in:
2026-08-27 00:29:21 -05:00
parent d72874534d
commit a69b927cc3
108 changed files with 395 additions and 2098 deletions
+8 -23
View File
@@ -18,8 +18,8 @@ fi
WORKSPACE_ROOT_DIR="$(pwd)"
CARGO_TARGET_DIR="$WORKSPACE_ROOT_DIR/target/wasm32-unknown-unknown"
# By default we build dev bundles.
RELEASE_CHANNEL="dev"
# Build the OSS bundle.
RELEASE_CHANNEL="oss"
FEATURES="release_bundle,gui"
DEBUG=false
@@ -84,11 +84,6 @@ eval set -- "$PARAMS"
if [[ $DEBUG = true ]]; then
CARGO_PROFILE="dev-wasm"
elif [[ $RELEASE_CHANNEL = "local" || $RELEASE_CHANNEL = "dev" ]]; then
# For dev bundles, we want to enable debug assertions to
# catch violations that would otherwise silently pass in
# a normal release build (e.g. in stable).
CARGO_PROFILE="release-wasm-debug_assertions"
else
CARGO_PROFILE="release-wasm"
fi
@@ -110,24 +105,14 @@ mkdir -p "$ASSET_TARGET_DIR"
EXTRAS_DIR="$CARGO_TARGET_OUTPUT_DIR/bundle/extras"
mkdir -p "$EXTRAS_DIR"
# Update parameters based on the target release channel.
#
# GALAXY_BIN is the name of the binary produced by cargo.
# N.B. The bundled outputs will always be galaxy.js and galaxy_bg.wasm.
if [[ $RELEASE_CHANNEL = "local" ]]; then
GALAXY_BIN="galaxy-local"
FEATURES="$FEATURES,remote_tty"
elif [[ $RELEASE_CHANNEL = "dev" ]]; then
GALAXY_BIN="galaxy-dev"
elif [[ $RELEASE_CHANNEL = "preview" ]]; then
GALAXY_BIN="galaxy-preview"
FEATURES="$FEATURES,preview_channel"
elif [[ $RELEASE_CHANNEL = "stable" ]]; then
GALAXY_BIN="stable"
elif [[ $RELEASE_CHANNEL = "oss" ]]; then
GALAXY_BIN="galaxy-oss"
if [[ "$RELEASE_CHANNEL" != "oss" ]]; then
echo "Error: only the oss release channel is supported" >&2
exit 1
fi
# OSS is the only supported release channel.
GALAXY_BIN="galaxy-oss"
if [ -n "${FEATURES_OVERRIDE+x}" ]; then
FEATURES="$FEATURES_OVERRIDE"
fi
+1 -1
View File
@@ -8,7 +8,7 @@ WASM_BINDGEN_VERSION="$(cargo metadata --format-version 1 | jq -rc '.packages[]
cargo install wasm-bindgen-cli --version "$WASM_BINDGEN_VERSION"
# We source the bundle script so we can access its calculated $OUT_DIR.
source ./script/wasm/bundle --debug --no-split --channel local "$@"
source ./script/wasm/bundle --debug --no-split --channel oss "$@"
BUNDLE_DIR="$(dirname "$OUT_DIR")"