Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 96856a4

Browse files
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

Lines changed: 21 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /