mirror of
https://github.com/luxfi/ai.git
synced 2026-10-30 17:02:43 +00:00
Zero-source-code thin shim that builds Lux Desktop from upstream hanzo/desktop with BRAND=lux overlay + brand/ assets. Mirrors the zoo/app and zoo/exchange patterns so all three brands ship the same machine/containers/Kubernetes/network UI from one upstream codebase.
26 lines
823 B
Bash
Executable File
26 lines
823 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Resolve the upstream hanzo/desktop checkout. Sourced by build.sh / dev.sh.
|
|
# Forward-only: one resolution path. Override with HANZO_DESKTOP=/abs/path.
|
|
set -euo pipefail
|
|
|
|
SHIM_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
UPSTREAM="${HANZO_DESKTOP:-$SHIM_ROOT/../../../hanzo/desktop}"
|
|
|
|
if [ ! -d "$UPSTREAM/apps/hanzo-desktop" ]; then
|
|
echo "error: upstream hanzo/desktop not found at $UPSTREAM" >&2
|
|
echo " clone github.com/hanzoai/desktop next to this repo, or set HANZO_DESKTOP." >&2
|
|
exit 1
|
|
fi
|
|
|
|
UPSTREAM="$(cd "$UPSTREAM" && pwd)"
|
|
APP_DIR="$UPSTREAM/apps/hanzo-desktop"
|
|
ICONS_DEST="$APP_DIR/src-tauri/icons/lux"
|
|
|
|
export SHIM_ROOT UPSTREAM APP_DIR ICONS_DEST
|
|
|
|
sync_brand() {
|
|
rm -rf "$ICONS_DEST"
|
|
mkdir -p "$(dirname "$ICONS_DEST")"
|
|
ln -s "$SHIM_ROOT/brand/icons" "$ICONS_DEST"
|
|
}
|