-
Notifications
You must be signed in to change notification settings - Fork 332
/
appveyor.yml
84 lines (78 loc) · 3.26 KB
/
appveyor.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3.2.0.{build}'
image: Visual Studio 2019
clone_folder: c:\projects\revive
environment:
QTDIR: C:\Qt\5.15.2\msvc2019_64
install:
# update vcpkg to the latest version
- cd C:\Tools\vcpkg
- git pull
- git apply %APPVEYOR_BUILD_FOLDER%\fix-vcpkg-openxr-static-loader.patch
- .\bootstrap-vcpkg.bat
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
- mkdir c:\projects\download_cache
# download and extract Oculus SDK
- ps: |
Invoke-WebRequest -Uri 'https://securecdn.oculus.com/binaries/download/?id=4377593722298679' -OutFile 'c:\projects\download_cache\oculus_sdk.zip'
cd c:\projects\revive\Externals
unzip c:\projects\download_cache\oculus_sdk.zip
# install required NSIS plugins
- ps: |
Invoke-WebRequest -Uri 'https://nsis.sourceforge.io/mediawiki/images/4/4a/AccessControl.zip' -OutFile 'c:\projects\download_cache\NSIS_AccessControl.zip'
cd c:\projects\download_cache
unzip NSIS_AccessControl.zip
copy Plugins\i386-ansi\AccessControl.dll 'C:\Program Files (x86)\NSIS\Plugins\x86-ansi'
copy Plugins\i386-unicode\AccessControl.dll 'C:\Program Files (x86)\NSIS\Plugins\x86-unicode'
build_script:
# ensure vcpkg dependencies are installed
- ps: |
vcpkg integrate install
vcpkg install --triplet x86-windows-static detours openxr-loader glfw3
vcpkg install --triplet x64-windows-static detours openxr-loader glfw3
# build the solution
- ps: |
cd C:\Projects\Revive
msbuild Revive.sln /t:Build /p:Configuration=Release /p:Platform=x64
msbuild Revive.sln /t:Build /p:Configuration=Release /p:Platform=x86
# build the overlay
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- cd C:\Projects\Revive\ReviveOverlay
- C:\Qt\5.15.2\msvc2019_64\bin\qmake.exe
- nmake
after_build:
# copy dependencies using windeployqt
- C:\Qt\5.15.2\msvc2019_64\bin\windeployqt.exe --no-translations --qmldir C:\Projects\Revive\ReviveOverlay C:\Projects\Revive\Release\ReviveOverlay.exe
# copy additional files to the build folder
- ps: |
cd C:\Projects\Revive\Release
copy ..\ReviveOverlay\SupportAssets . -Filter "*.jpg" -Recurse -Container
copy C:\openssl-v111-win64\bin\libcrypto-1_1-x64.dll .
copy C:\openssl-v111-win64\bin\libssl-1_1-x64.dll .
# gather build artifacts
- ps: |
cd C:\Projects\Revive\Release
7z a ..\Installer\Revive.zip ReviveInjector.exe LibRevive32.dll LibRevive64.dll LibReviveXR64.dll LibReviveXR32.dll
# run NSIS to generate installer
- ps: |
cd C:\Projects\Revive\Installer
$env:Path += ";C:\Program Files (x86)\NSIS"
If ($env:APPVEYOR_REPO_TAG -eq "true") {
makensis Revive.nsi
} Else {
makensis /DNIGHTLY Revive.nsi
}
artifacts:
- path: Installer\ReviveInstaller.exe
name: Revive Installer
- path: Installer\Revive.zip
name: Revive Build
deploy:
provider: GitHub
auth_token:
secure: 9ktb/rF39gcllEG+9tZgsNz5nU57xL517ki2bOnhGuGAmbNetV91B8lFBEjDC41UXEzzy4WqPTxYBl/9v/F9OkoO1ZDUk9wAS8Uo873Eq+UP/BTVQCskrK8YP4kE6Hhl
artifact: 'Revive Installer'
draft: true
prerelease: false
on:
APPVEYOR_REPO_TAG: true