Seregon/PkgToolBox

Toolbox for analyzing and editing pkg application files for psp,ps3, ps4 and ps5, includes the most useful functions you might need.

Python/57.3 KB/No license
scripts/build_installer.bat
PkgToolBox / scripts / build_installer.bat
1@echo off
2cd /d "%~dp0\.."
3echo ========================================
4echo Building PkgToolBox Installer
5echo ========================================
6 
7:: Verifica se Inno Setup è installato
8if not exist "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" (
9 if not exist "C:\Program Files\Inno Setup 6\ISCC.exe" (
10 echo ERRORE: Inno Setup 6 non trovato!
11 echo Scarica e installa Inno Setup da: https://jrsoftware.org/isdl.php
12 pause
13 exit /b 1
14 )
15 set "ISCC=C:\Program Files\Inno Setup 6\ISCC.exe"
16) else (
17 set "ISCC=C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
18)
19 
20:: Verifica se esiste la build PyInstaller
21if not exist "dist\PkgToolBox\PkgToolBox.exe" (
22 echo ERRORE: Build PyInstaller non trovata!
23 echo Esegui prima: py -m PyInstaller PkgToolBox.spec
24 pause
25 exit /b 1
26)
27 
28:: Crea la directory di output se non esiste
29if not exist "installer_output" mkdir installer_output
30 
31:: Compila l'installer
32echo Compilazione installer in corso...
33"%ISCC%" "scripts\PkgToolBox.iss"
34 
35if %ERRORLEVEL% EQU 0 (
36 echo.
37 echo ========================================
38 echo Installer creato con successo!
39 echo File: installer_output\PkgToolBox_Setup.exe
40 echo ========================================
41) else (
42 echo.
43 echo ========================================
44 echo ERRORE durante la compilazione!
45 echo ========================================
46)
47 
48pause