Windows scripts for running dev mode

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

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
# This runs Artcraft Frontend in dev mode on Windows
Write-Host "Running Artcraft Frontend in Dev Mode..."
Write-Host ""
Write-Host "You'll need to launch the Rust dev server as a second script!" -ForegroundColor red -BackgroundColor white
Write-Host ""
Push-Location -Path ".\frontend"
$env:VITE_ENVIRONMENT_TYPE="production"
try
{
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
Write-Host "Running dev server..."
Write-Host ""
Write-Host "If this isn't running on port 5173, you may need to kill a zombie process!" -ForegroundColor red -BackgroundColor white
Write-Host ""
nx dev editor3d
}
finally
{
Pop-Location
}
+11
View File
@@ -0,0 +1,11 @@
# This runs Artcraft Rust in dev mode on Windows
Write-Host "Running Artcraft Rust in Dev Mode..."
Write-Host ""
Write-Host "You'll need to launch the frontend dev server as a second script!" -ForegroundColor red -BackgroundColor white
Write-Host ""
$env:TAURI_FRONTEND_PATH=".\frontend"
$env:TAURI_APP_PATH=".\crates\desktop\artcraft"
cargo tauri dev --config ".\crates\desktop\artcraft\tauri.artcraft_3d.no_dev.conf.json"