Warp to Galaxy internal rebrand
This commit is contained in:
+4
-32
@@ -6,10 +6,8 @@
|
||||
# as a real `.app` bundle (with code signing, plist updates, etc.). On Linux
|
||||
# and Windows it invokes `cargo run` directly for the appropriate binary.
|
||||
#
|
||||
# This script owns all cross-platform setup (running install_channel_config,
|
||||
# detecting internal vs OSS builds, and mapping legacy `--features` entries
|
||||
# to environment variables), so platform-specific scripts can assume those
|
||||
# values are already provided via environment variables.
|
||||
# This script owns all cross-platform setup and passes the OSS channel values
|
||||
# to the platform-specific scripts.
|
||||
|
||||
set -e
|
||||
|
||||
@@ -23,17 +21,8 @@ INSTALL_COMMON_SKILLS=1
|
||||
FORCE_COMMON_SKILLS=0
|
||||
COMMON_SKILLS_TARGET="${WARP_COMMON_SKILLS_INSTALL_TARGET:-}"
|
||||
|
||||
./script/install_channel_config || echo "Skipping internal channel config installation (no repo access)."
|
||||
|
||||
|
||||
# If warp_channel_config is on PATH, build the Local channel binary; otherwise build the OSS channel.
|
||||
if command -v warp-channel-config &>/dev/null; then
|
||||
WARP_BIN_NAME="galaxy-local"
|
||||
WARP_CHANNEL="local"
|
||||
else
|
||||
WARP_BIN_NAME="galaxy-oss"
|
||||
WARP_CHANNEL="oss"
|
||||
fi
|
||||
WARP_BIN_NAME="galaxy-oss"
|
||||
WARP_CHANNEL="oss"
|
||||
|
||||
# Shared argument parsing. macOS-specific flags (--dont-open,
|
||||
# --open_with_launchd, --generate-schema) are forwarded through MAC_ARGS and
|
||||
@@ -122,23 +111,6 @@ if [[ "$INSTALL_COMMON_SKILLS" -eq 1 ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# These cargo features were removed and replaced by environment variables read
|
||||
# by warp-channel-config. Intercept them here so that existing --features
|
||||
# invocations keep working.
|
||||
for mapping in \
|
||||
"with_local_server:WITH_LOCAL_SERVER" \
|
||||
"with_local_session_sharing_server:WITH_LOCAL_SESSION_SHARING_SERVER" \
|
||||
"with_sandbox_telemetry:WITH_SANDBOX_TELEMETRY"; do
|
||||
feature="${mapping%%:*}"
|
||||
env_var="${mapping##*:}"
|
||||
if [[ ",$FEATURES," =~ ,"$feature", ]]; then
|
||||
export "$env_var"=1
|
||||
FEATURES="$(echo "$FEATURES" | sed "s/,$feature,/,/; s/^$feature,//; s/,$feature$//; s/^$feature$//")"
|
||||
FEATURES="$(echo "$FEATURES" | sed 's/,,*/,/g; s/^,//; s/,$//')"
|
||||
echo "Note: '$feature' is no longer a cargo feature; setting $env_var=1 instead."
|
||||
fi
|
||||
done
|
||||
|
||||
export FEATURES
|
||||
export WARP_BIN_NAME
|
||||
export WARP_CHANNEL
|
||||
|
||||
Reference in New Issue
Block a user