From 48a4f05e933e880438b28bf8db9dd64e3dbf21ba Mon Sep 17 00:00:00 2001 From: Ahrimdon Date: Sat, 31 Aug 2024 20:41:00 -0400 Subject: [PATCH] maint: adjust installer compile script for vscode tasks + better error handling --- installer/compile.bat | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/installer/compile.bat b/installer/compile.bat index 33b004a9..96709a9a 100644 --- a/installer/compile.bat +++ b/installer/compile.bat @@ -1,10 +1,20 @@ @echo off +cd /D "%~dp0" + if not exist "build" mkdir "build" + "tools\makensis.exe" "iw7_Installer.nsi" +if %ERRORLEVEL% neq 0 ( + echo.s + echo Compilation failed! + echo. + pause + exit /b %ERRORLEVEL% +) + echo. echo Compiled successfully! echo. - -pause \ No newline at end of file +pause