feat(detmir): add rust-first operations tooling
This commit is contained in:
@@ -8,6 +8,29 @@ KIT_DIR="install-kit-awindows-20260427-211240"
|
||||
MANIFEST="$KIT_DIR/MANIFEST.txt"
|
||||
ZIP_ARCHIVE="install-kit-awindows-20260427-211240.zip"
|
||||
TAR_ARCHIVE="install-kit-awindows-20260427-211240.tar.gz"
|
||||
TARGET_ROOT="${CARGO_TARGET_DIR:-$ROOT_DIR/adk-rust/target}"
|
||||
RUST_BIN="${VALIDATE_INSTALL_KIT_RUST:-}"
|
||||
|
||||
rust_candidates=()
|
||||
if [[ -n "$RUST_BIN" ]]; then
|
||||
rust_candidates+=("$RUST_BIN")
|
||||
fi
|
||||
rust_candidates+=(
|
||||
"$TARGET_ROOT/release/validate-install-kit"
|
||||
"$ROOT_DIR/adk-rust/target/release/validate-install-kit"
|
||||
"/usr/local/bin/validate-install-kit"
|
||||
)
|
||||
|
||||
for candidate in "${rust_candidates[@]}"; do
|
||||
if [[ -x "$candidate" ]]; then
|
||||
exec "$candidate" \
|
||||
--root "$ROOT_DIR" \
|
||||
--kit-dir "$KIT_DIR" \
|
||||
--zip-archive "$ZIP_ARCHIVE" \
|
||||
--tar-archive "$TAR_ARCHIVE" \
|
||||
"$@"
|
||||
fi
|
||||
done
|
||||
|
||||
required_files=(
|
||||
"$MANIFEST"
|
||||
@@ -16,6 +39,10 @@ required_files=(
|
||||
"$KIT_DIR/windows/validate-deployment.ps1"
|
||||
"$KIT_DIR/ansible/deploy_aw_windows.yml"
|
||||
"$KIT_DIR/aw-server/install_aw_server.sh"
|
||||
"$KIT_DIR/scripts/rebuild_install_kit.sh"
|
||||
"$KIT_DIR/scripts/validate_install_kit.sh"
|
||||
"$KIT_DIR/scripts/check_install_kit_vs_repo.sh"
|
||||
"$KIT_DIR/scripts/quality-gate.sh"
|
||||
)
|
||||
|
||||
echo "[1/4] Required files presence"
|
||||
|
||||
Reference in New Issue
Block a user