forked from jpd002/Play-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor_build.cmd
35 lines (27 loc) · 1.04 KB
/
appveyor_build.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
setlocal enabledelayedexpansion
mkdir build
cd build
if "%BUILD_PLAY%" == "ON" (
cmake .. -G"%BUILD_TYPE%" -T v141_xp -DUSE_QT=on -DCMAKE_PREFIX_PATH="C:\Qt\5.12\%QT_FLAVOR%"
cmake --build . --config %CONFIG_TYPE%
if !errorlevel! neq 0 exit /b !errorlevel!
c:\Qt\5.12\%QT_FLAVOR%\bin\windeployqt.exe ./Source/ui_qt/Release --no-system-d3d-compiler --no-quick-import --no-opengl-sw --no-compiler-runtime --no-translations
cd ..
"C:\Program Files (x86)\NSIS\makensis.exe" ./installer_win32/%INSTALLER_SCRIPT%
cd ..
cd ..
mkdir %REPO_COMMIT_SHORT%
move Play-Build\Play\installer_win32\*.exe %REPO_COMMIT_SHORT%
)
if "%BUILD_PSFPLAYER%" == "ON" (
cmake .. -G"%BUILD_TYPE%" -T v141_xp -DBUILD_PLAY=off -DBUILD_PSFPLAYER=on
cmake --build . --config %CONFIG_TYPE%
if !errorlevel! neq 0 exit /b !errorlevel!
cd ..
"C:\Program Files (x86)\NSIS\makensis.exe" ./tools/PsfPlayer/installer_win32/%INSTALLER_SCRIPT%
cd ..
cd ..
mkdir %REPO_COMMIT_SHORT%
move Play-Build\Play\tools\PsfPlayer\installer_win32\*.exe %REPO_COMMIT_SHORT%
)