Files
metaverseDubai/scripts/setup/verify_ue5_installation.sh
2026-07-07 03:43:19 -07:00

109 lines
3.0 KiB
Bash
Executable File

#!/bin/bash
#
# Script Name: verify_ue5_installation.sh
# Description: Verify Unreal Engine 5.4 installation
# Usage: ./verify_ue5_installation.sh
# Author: Dubai Metaverse Team
# Date: 2024
# Version: 1.0
set -euo pipefail
# Configuration
UE_ROOT="${UE_ROOT:-$HOME/UnrealEngine}"
LOG_FILE="${LOG_FILE:-$HOME/projects/metaverseDubai/logs/verify_ue5.log}"
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
# Logging
log() {
local level="${1:-INFO}"
shift
local message="$*"
local timestamp=$(date +'%Y-%m-%d %H:%M:%S')
echo "[$timestamp] [$level] $message" | tee -a "$LOG_FILE"
}
# Create log directory
mkdir -p "$(dirname "$LOG_FILE")"
echo "=========================================="
echo "UE5.4 Installation Verification"
echo "=========================================="
echo ""
# Check UnrealEngine directory
if [ ! -d "$UE_ROOT" ]; then
echo -e "${RED}${NC} UnrealEngine directory not found: $UE_ROOT"
exit 1
fi
echo -e "${GREEN}${NC} UnrealEngine directory found: $UE_ROOT"
# Check UnrealEditor binary
EDITOR_PATH="$UE_ROOT/Engine/Binaries/Linux/UnrealEditor"
if [ ! -f "$EDITOR_PATH" ]; then
echo -e "${YELLOW}${NC} UnrealEditor binary not found: $EDITOR_PATH"
echo " Build may still be in progress"
echo " Check build status: ~/projects/metaverseDubai/UE5_BUILD_MONITOR.sh"
exit 1
fi
echo -e "${GREEN}${NC} UnrealEditor binary found: $EDITOR_PATH"
# Check binary size (should be substantial)
BINARY_SIZE=$(du -h "$EDITOR_PATH" | cut -f1)
echo -e "${GREEN}${NC} UnrealEditor size: $BINARY_SIZE"
# Check version
echo ""
echo "Checking Unreal Engine version..."
if "$EDITOR_PATH" -version 2>&1 | grep -q "5.4"; then
VERSION=$("$EDITOR_PATH" -version 2>&1 | head -1)
echo -e "${GREEN}${NC} Version: $VERSION"
else
echo -e "${YELLOW}${NC} Could not verify version (may require GUI)"
echo " Version check requires running editor"
fi
# Check required plugins
echo ""
echo "Checking required plugins..."
PLUGINS_DIR="$UE_ROOT/Engine/Plugins"
REQUIRED_PLUGINS=(
"ProceduralContentGeneration"
"VirtualProduction"
"MovieRenderQueue"
)
for plugin in "${REQUIRED_PLUGINS[@]}"; do
if [ -d "$PLUGINS_DIR/$plugin" ]; then
echo -e "${GREEN}${NC} Plugin found: $plugin"
else
echo -e "${YELLOW}${NC} Plugin not found: $plugin"
fi
done
# Check disk space
echo ""
echo "Checking installation size..."
INSTALL_SIZE=$(du -sh "$UE_ROOT" 2>/dev/null | cut -f1)
echo -e "${GREEN}${NC} Installation size: $INSTALL_SIZE"
# Summary
echo ""
echo "=========================================="
echo "Verification Summary"
echo "=========================================="
echo -e "${GREEN}${NC} Unreal Engine 5.4 installation verified"
echo ""
echo "Next steps:"
echo "1. Create project: ./scripts/setup/create_ue5_project.sh"
echo "2. Launch editor: $EDITOR_PATH ~/projects/metaverseDubai/DubaiMetaverse.uproject"
echo ""
log "INFO" "Verification complete - Installation OK"