-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.ps1
More file actions
34 lines (30 loc) · 1.29 KB
/
Copy pathbuild.ps1
File metadata and controls
34 lines (30 loc) · 1.29 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
32
33
34
# Build script for Gamebase Game Organizer
# Builds an executable using PyInstaller
Write-Host "Gamebase Game Organizer - Build Script" -ForegroundColor Cyan
Write-Host "=" * 50
# Check if PyInstaller is installed
Write-Host "`nChecking for PyInstaller..." -ForegroundColor Yellow
$pyinstaller = python -m pip show pyinstaller 2>$null
if ($null -eq $pyinstaller) {
Write-Host "PyInstaller not installed" -ForegroundColor Red
Write-Host "Installing PyInstaller..." -ForegroundColor Yellow
python -m pip install pyinstaller
if ($LASTEXITCODE -ne 0) {
Write-Host "Failed to install PyInstaller" -ForegroundColor Red
exit 1
}
} else {
Write-Host "PyInstaller found" -ForegroundColor Green
}
# Build the GUI executable
Write-Host "`nBuilding GUI executable..." -ForegroundColor Yellow
python -m PyInstaller --onefile --windowed --name GameBase64Organizer gb64_gui.py
if ($LASTEXITCODE -eq 0) {
Write-Host "`n" -ForegroundColor Green
Write-Host "Build successful!" -ForegroundColor Green
Write-Host "Executable location: .\dist\GameBase64Organizer.exe" -ForegroundColor Cyan
Write-Host "`nNote: Original CLI version still available via 'python gb64_reorganizer.py'" -ForegroundColor Cyan
} else {
Write-Host "`nBuild failed" -ForegroundColor Red
exit 1
}