30 lines
702 B
Bash
30 lines
702 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT=$(cd "$(dirname "$0")/../.." && pwd)
|
|
EXPECTED_BRANCH="release/v2r1c0-tenant-cell-fabric-20260712"
|
|
|
|
if [[ "$(git -C "$ROOT" branch --show-current)" != "$EXPECTED_BRANCH" ]]; then
|
|
echo "wrong release branch"
|
|
exit 1
|
|
fi
|
|
|
|
COMMIT=$(git -C "$ROOT" rev-parse HEAD)
|
|
echo "Installing AIOS V2R1C0 RC1 commit=$COMMIT"
|
|
|
|
python3 - <<'PY'
|
|
import compileall
|
|
if not compileall.compile_dir('active-runtime/app/aios_v2r1', quiet=1):
|
|
raise SystemExit(1)
|
|
print('python compile PASS')
|
|
PY
|
|
|
|
if [[ -f openclaw/plugins/aios-tenant-boundary/package.json ]]; then
|
|
echo "plugin package PASS"
|
|
else
|
|
echo "plugin package missing"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Installation preflight PASS"
|