mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Windows CI: Build with Qt 5.7.1 if Qt 5.7.0 is unavailable
This commit is contained in:
parent
a1fa5dc3cb
commit
8d7ed32fc2
20
CI/install-setup-qt.cmd
Normal file
20
CI/install-setup-qt.cmd
Normal file
@ -0,0 +1,20 @@
|
||||
@echo off
|
||||
|
||||
REM Set default values to use AppVeyor's built-in Qt.
|
||||
set QTDIR32=C:\Qt\5.7\msvc2013
|
||||
set QTDIR64=C:\Qt\5.7\msvc2013_64
|
||||
set QTCompileVersion=5.7.1
|
||||
|
||||
REM If the AppVeyor cache couldn't recover qt570.7z,
|
||||
REM try to fetch Qt 5.7.0 from slepin.fr.
|
||||
if not exist qt570.7z (
|
||||
curl -kLO https://www.slepin.fr/obs-plugins/deps/qt570.7z -f --retry 5 -C -
|
||||
)
|
||||
|
||||
REM If qt570.7z exists now, use that instead of AppVeyor's built-in Qt.
|
||||
if exist qt570.7z (
|
||||
7z x qt570.7z -o"Qt5.7.0"
|
||||
set QTDIR32=%CD%\Qt5.7.0\msvc2013
|
||||
set QTDIR64=%CD%\Qt5.7.0\msvc2013_64
|
||||
set QTCompileVersion=5.7.0
|
||||
)
|
@ -6,12 +6,9 @@ install:
|
||||
- cd C:\projects\
|
||||
- if not exist dependencies2013.zip curl -kLO https://obsproject.com/downloads/dependencies2013.zip -f --retry 5 -C -
|
||||
- 7z x dependencies2013.zip -odependencies2013
|
||||
- if not exist qt570.zip curl -kLO https://www.slepin.fr/obs-websocket/ci/qt570.zip -f --retry 5 -C -
|
||||
- 7z x qt570.zip -o"Qt5.7.0"
|
||||
- set DepsPath32=%CD%\dependencies2013\win32
|
||||
- set DepsPath64=%CD%\dependencies2013\win64
|
||||
- set QTDIR32=%CD%\Qt5.7.0\msvc2013
|
||||
- set QTDIR64=%CD%\Qt5.7.0\msvc2013_64
|
||||
- call C:\projects\obs-websocket\CI\install-setup-qt.cmd
|
||||
- set build_config=Release
|
||||
- call C:\projects\obs-websocket\CI\install-build-obs.cmd
|
||||
- cd C:\projects\obs-websocket\
|
||||
@ -36,6 +33,6 @@ test: off
|
||||
|
||||
cache:
|
||||
- C:\projects\dependencies2013.zip
|
||||
- C:\projects\qt570.zip
|
||||
- C:\projects\qt570.7z
|
||||
- C:\projects\obs-studio-last-tag-built.txt
|
||||
- C:\projects\obs-studio\
|
||||
|
Loading…
x
Reference in New Issue
Block a user