# Build Production Artcraft Write-Host "Building production Artcraft..." Write-Host "" try { Push-Location -Path ".\frontend" Write-Host "Installing latest dependencies..." Write-Host "" Write-Host "You may need to run ./clean_modules.sh or manually clean up occasionally!" -ForegroundColor red -BackgroundColor white Write-Host "" npm install --verbose } finally { Pop-Location } $env:VITE_ENVIRONMENT_TYPE="production" # This tells Tauri *which* frontend and *which* Rust app to use since we're in a monorepo with several apps. $env:TAURI_FRONTEND_PATH=".\frontend" $env:TAURI_APP_PATH=".\crates\desktop\artcraft" # The config file tells Tauri more instructions for the frontend build. cargo tauri build --config ".\crates\desktop\artcraft\tauri.artcraft_3d.no_dev.conf.json" Write-Host "" Write-Host "Production Build Done!" -ForegroundColor green -BackgroundColor white Write-Host "" Write-Host "You can find the installer in: target\release\bundle\nsis\ArtCraft_(version_info)-setup.exe" Start-Process "explorer.exe" -ArgumentList ".\target\release\bundle\nsis"