mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-04 09:43:12 +02:00
645989e602
(Would surprise me if this compiles without failure, tho) @skipci
57 lines
1.9 KiB
Batchfile
57 lines
1.9 KiB
Batchfile
echo on
|
|
|
|
rem Temporarily hardcoded:
|
|
set TARGET=Visual Studio 2019
|
|
set SHORTNAME=vs2017
|
|
|
|
rem Initialize Visual Studio variables
|
|
if "%TARGET%" == "Visual Studio 2017" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
|
|
if "%TARGET%" == "Visual Studio 2019" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
|
|
|
|
rem Installing tools
|
|
rem only for appveyor:
|
|
rem cinst unrar -y
|
|
rem cinst unzip -y
|
|
rem cinst innosetup -y
|
|
curl -fsS -o dlltool.exe https://www.unrealircd.org/files/dev/win/dlltool.exe
|
|
|
|
rem Installing UnrealIRCd dependencies
|
|
cd \projects
|
|
mkdir unrealircd-deps
|
|
cd unrealircd-deps
|
|
curl -fsS -o SetACL.exe https://www.unrealircd.org/files/dev/win/SetACL.exe
|
|
curl -fsS -o unrealircd-libraries-devel.zip https://www.unrealircd.org/files/dev/win/libs/unrealircd-libraries-devel.zip
|
|
unzip unrealircd-libraries-devel.zip
|
|
|
|
rem for appveyor: cd \projects\unrealircd
|
|
cd \users\user\worker\unreal5-w10\build
|
|
|
|
rem Now the actual build
|
|
call extras\build-tests\windows\compilecmd\%SHORTNAME%.bat
|
|
|
|
rem The above command will fail, due to missing symbol file
|
|
rem However the symbol file can only be generated after the above command
|
|
rem So... we create the symbolfile...
|
|
nmake -f makefile.windows SYMBOLFILE
|
|
|
|
rem And we re-run the exact same command:
|
|
call extras\build-tests\windows\compilecmd\%SHORTNAME%.bat
|
|
if %ERRORLEVEL% NEQ 0 EXIT /B 1
|
|
|
|
rem Convert c:\dev to c:\projects\unrealircd-deps
|
|
rem TODO: should use environment variable in innosetup script?
|
|
sed -i "s/c:\\dev/c:\\projects\\unrealircd-deps/gi" src\windows\unrealinst.iss
|
|
|
|
rem Build installer file
|
|
"c:\Program Files (x86)\Inno Setup 5\iscc.exe" /Q- src\windows\unrealinst.iss
|
|
if %ERRORLEVEL% NEQ 0 EXIT /B 1
|
|
|
|
rem Show some proof
|
|
ren mysetup.exe unrealircd-dev-build.exe
|
|
dir unrealircd-dev-build.exe
|
|
sha256sum unrealircd-dev-build.exe
|
|
|
|
rem Upload artifact
|
|
rem appveyor PushArtifact unrealircd-dev-build.exe
|
|
rem if %ERRORLEVEL% NEQ 0 EXIT /B 1
|