-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-installer.bat
More file actions
48 lines (42 loc) · 1.12 KB
/
build-installer.bat
File metadata and controls
48 lines (42 loc) · 1.12 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@echo off
REM Build and package PiPCrunchy with Inno Setup
REM Requires Inno Setup to be installed: https://jrsoftware.org/isinfo.php
echo ========================================
echo PiPCrunchy Installer Build Script
echo ========================================
echo.
REM First, build the application
call build.bat
if %errorlevel% neq 0 (
echo ERROR: Build failed
pause
exit /b 1
)
echo.
echo [4/4] Creating installer with Inno Setup...
echo.
REM Check if Inno Setup is installed
set INNO_SETUP="C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
if not exist %INNO_SETUP% (
echo ERROR: Inno Setup not found at %INNO_SETUP%
echo Please install Inno Setup from: https://jrsoftware.org/isinfo.php
echo Or update the path in this script.
pause
exit /b 1
)
REM Compile the installer
%INNO_SETUP% installer.iss
if %errorlevel% neq 0 (
echo ERROR: Installer creation failed
pause
exit /b 1
)
echo.
echo ========================================
echo INSTALLER BUILD SUCCESSFUL!
echo ========================================
echo.
echo Installer location:
echo Output\PiPCrunchy-Setup.exe
echo.
pause