Fixes: 1) Remove obsolete `reboot` scripts for Unix and Windows to prevent redundancy; 2) Update Windows `test.ps1` to handle omitted coverage patterns and improve error feedback. Extra: 1) Refactor Windows scripts (`make-messages.ps1`, `compile-messages.ps1`, `backup.ps1`) to use shared utilities for better consistency and output formatting; 2) Add spinner-based progress indicators to enhance user experience in interactive environments.
33 lines
699 B
Bash
Executable file
33 lines
699 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
source ./scripts/Unix/starter.sh
|
|
|
|
if [ ! -f .env ]; then
|
|
log_warning ".env file not found. Exiting without running Docker steps."
|
|
exit 0
|
|
fi
|
|
|
|
# Check system requirements
|
|
if ! check_system_requirements 4 6 20; then
|
|
exit 1
|
|
fi
|
|
|
|
# Pull Docker images
|
|
log_step "Pulling images..."
|
|
if ! docker compose pull; then
|
|
log_error "Failed to pull Docker images"
|
|
exit 1
|
|
fi
|
|
log_success "Images pulled successfully"
|
|
|
|
# Build Docker images
|
|
log_step "Building images..."
|
|
if ! docker compose build; then
|
|
log_error "Failed to build Docker images"
|
|
exit 1
|
|
fi
|
|
log_success "Images built successfully"
|
|
|
|
echo
|
|
log_result "You can now use run.sh script or run: ./lessy.py run"
|