-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
29 lines (21 loc) · 881 Bytes
/
Copy pathbuild.ps1
File metadata and controls
29 lines (21 loc) · 881 Bytes
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
# Build Script for NovaPulse v0.2.0
$ErrorActionPreference = "Stop"
# Ensure src/main.pyw exists
if (-not (Test-Path "src/main.pyw")) {
Write-Error "Could not find src/main.pyw. Please run this script from the root of the repository."
exit 1
}
Write-Host "Building NovaPulse Executable..." -ForegroundColor Cyan
# Install requirements
python -m pip install -r requirements.txt
python -m pip install pyinstaller
# Clean old builds
if (Test-Path "build") { Remove-Item "build" -Recurse -Force }
if (Test-Path "dist") { Remove-Item "dist" -Recurse -Force }
# Run PyInstaller
python -m PyInstaller --noconfirm --onefile --windowed --icon "assets/icon.ico" --name "NovaPulse" "src/main.pyw"
if ($LASTEXITCODE -ne 0) {
Write-Error "PyInstaller build failed."
exit 1
}
Write-Host "Build successful! Executable is located in dist/NovaPulse/" -ForegroundColor Green