windows production build script

This commit is contained in:
Brandon Thomas committed 2025-05-07 14:42:40 -04:00
1 parent abe2d2a093
commit 9dd16f2e80
2 files changed
+31

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
# 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
}
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"
+2
View File
@@ -5,7 +5,9 @@ Write-Host ""
Write-Host "You'll need to launch the frontend dev server as a second script!" -ForegroundColor red -BackgroundColor white
Write-Host ""
# 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 dev --config ".\crates\desktop\artcraft\tauri.artcraft_3d.no_dev.conf.json"