Skip to content

Commit 96856a4

Browse files
committed
more error checking #GITBUILD
1 parent 828d7f1 commit 96856a4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

BuildInstaller.bat

+21
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,27 @@ CALL DisableOutOfProcBuild.exe
2929
REM Restore previous directory
3030
CD /D "%current_path%"
3131

32+
REM === Validate required files ===
33+
ECHO:
34+
ECHO === Checking required files ===
35+
36+
SET "error=0"
37+
38+
IF NOT EXIST "UnityLauncherPro\bin\Release\UnityLauncherPro.exe" (
39+
ECHO [ERROR] Missing file: UnityLauncherPro\bin\Release\UnityLauncherPro.exe
40+
SET "error=1"
41+
)
42+
IF NOT EXIST "UnityLauncherPro\Images\icon.ico" (
43+
ECHO [ERROR] Missing file: UnityLauncherPro\Images\icon.ico
44+
SET "error=1"
45+
)
46+
47+
IF %error% NEQ 0 (
48+
ECHO [ERROR] Required files are missing. Aborting installer build.
49+
EXIT /B 1
50+
)
51+
52+
3253
ECHO:
3354
ECHO === Building Installer ===
3455
CALL "%devenv_path%" UnityLauncherPro.sln /Rebuild Release /Project UnityLauncherProInstaller

0 commit comments

Comments
 (0)