AeThex-OS/build-launcher.ps1

37 lines
1.3 KiB
PowerShell

# PowerShell Build Script for AeThex Launcher
# For Windows platforms
Write-Host "🚀 Building AeThex Launcher for Windows" -ForegroundColor Cyan
Write-Host "=========================================" -ForegroundColor Cyan
# Check if Rust is installed
if (!(Get-Command cargo -ErrorAction SilentlyContinue)) {
Write-Host "❌ Rust is not installed. Please install Rust from https://rustup.rs/" -ForegroundColor Red
exit 1
}
# Check if Node.js is installed
if (!(Get-Command node -ErrorAction SilentlyContinue)) {
Write-Host "❌ Node.js is not installed. Please install Node.js from https://nodejs.org/" -ForegroundColor Red
exit 1
}
# Install dependencies
Write-Host "📦 Installing Node.js dependencies..." -ForegroundColor Yellow
npm install
# Build the web application
Write-Host "🔨 Building web application..." -ForegroundColor Yellow
npm run build
# Build Tauri application for Windows
Write-Host "🏗️ Building Tauri desktop application..." -ForegroundColor Yellow
npm run tauri:build
Write-Host ""
Write-Host "✅ Build completed successfully!" -ForegroundColor Green
Write-Host ""
Write-Host "📦 Build artifacts can be found in:" -ForegroundColor Cyan
Write-Host " src-tauri/target/release/bundle/msi/" -ForegroundColor White
Write-Host ""
Write-Host "🎉 AeThex Launcher is ready for distribution!" -ForegroundColor Green