mirror of
https://github.com/LegacyUpdate/LegacyUpdate.git
synced 2025-01-22 14:12:07 -05:00
21 lines
475 B
Batchfile
21 lines
475 B
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
cd %~dp0
|
|
|
|
set ProgramFiles32=%ProgramFiles%
|
|
if "%ProgramFiles(x86)%" neq "" set ProgramFiles32=%ProgramFiles(x86)%
|
|
|
|
path %ProgramFiles32%\NSIS\Bin;%path%
|
|
|
|
:: Make sure we have MakeNSIS
|
|
if not exist "%ProgramFiles32%\NSIS\Bin\makensis.exe" (
|
|
echo NSIS not found. Refer to README.md. >&2
|
|
exit /b 1
|
|
)
|
|
|
|
:: Build project
|
|
call LegacyUpdate\build.cmd
|
|
|
|
:: Build NSIS
|
|
makensis setup\setup.nsi
|
|
if "%errorlevel%" neq "0" exit /b %errorlevel%
|