-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
31 lines (24 loc) · 1.02 KB
/
build.ps1
File metadata and controls
31 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Production build script for JPad (Windows)
# Builds for Windows platform
$ErrorActionPreference = "Stop"
Write-Host "🚀 Building JPad for production..." -ForegroundColor Green
Write-Host "Platform: Windows"
Write-Host ""
# Clean previous builds
Write-Host "🧹 Cleaning previous builds..." -ForegroundColor Yellow
if (Test-Path "dist") { Remove-Item -Recurse -Force "dist" }
if (Test-Path "src-tauri/target/release/bundle") { Remove-Item -Recurse -Force "src-tauri/target/release/bundle" }
# Install dependencies if needed
if (-not (Test-Path "node_modules")) {
Write-Host "📦 Installing dependencies..." -ForegroundColor Yellow
npm install
}
# Build frontend
Write-Host "🔨 Building frontend..." -ForegroundColor Yellow
npm run build
# Build Tauri app
Write-Host "🦀 Building Tauri application..." -ForegroundColor Yellow
npm run tauri:build
Write-Host ""
Write-Host "✅ Build complete!" -ForegroundColor Green
Write-Host "📦 Installers can be found in: src-tauri/target/release/bundle/" -ForegroundColor Cyan