mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 04:16:55 +00:00
windows production build script
This commit is contained in:
1 parent
abe2d2a093
commit
9dd16f2e80
2 files changed
+31
No files matched your search
@@ -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"
|
||||
@@ -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"
|
||||
Reference in new issue
Block a user