forked from AgoraIO/Basic-Video-Call
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
80 additions
and
9 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
Group-Video/OpenVideoCall-Windows/build_appveyor_release.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@echo off | ||
|
||
title qmake and nmake build prompt | ||
set SDKVersion=%~1 | ||
set SDKFolderVersion=%~2 | ||
set Machine=%~3 | ||
set ProjName=%~4 | ||
echo SDKVersion: %SDKVersion% | ||
echo SDKFolderVersion: %SDKFolderVersion% | ||
echo ProjName:%ProjName% | ||
curl -fsSL -o AgoraSDK.zip https://download.agora.io/sdk/release/Agora_Native_SDK_for_Windows(%Machine%)_v%SDKVersion%_FULL.zip | ||
if exist AgoraSDK.zip ( | ||
7z x AgoraSDK.zip -oAgoraSDK | ||
) else ( | ||
echo "download sdk failed" | ||
echo "https://download.agora.io/sdk/release/Agora_Native_SDK_for_Windows(%Machine%)_v%SDKVersion%_FULL.zip" | ||
exit | ||
) | ||
|
||
if not exist sdk (mkdir sdk) | ||
xcopy /S /I AgoraSDK\Agora_Native_SDK_for_Windows_v%SDKFolderVersion%_FULL\sdk sdk /y | ||
|
||
if exist AgoraSDK (rmdir /S /Q AgoraSDK) | ||
|
||
del AgoraSDK.zip | ||
|
||
if %Machine% == x86 ( | ||
set QTDIR=C:\Qt\5.13.2\msvc2017 | ||
) else ( | ||
set QTDIR=C:\Qt\5.13.2\msvc2017_64 | ||
) | ||
|
||
set VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build | ||
|
||
call "%VCINSTALLDIR%\vcvarsall.bat" %Machine% | ||
%QTDIR%\bin\qmake.exe %ProjName%.pro "CONFIG+=release" "CONFIG+=qml_release" | ||
nmake | ||
|
||
if not exist release ( | ||
echo "no release" | ||
exit | ||
) | ||
|
||
cd release | ||
del *.h | ||
del *.cpp | ||
del *.obj | ||
%QTDIR%\bin\windeployqt %ProjName%.exe | ||
cd .. | ||
|
||
set PackageDIR=%ProjName%_Win_v%SDKFolderVersion% | ||
if not exist %PackageDIR% ( | ||
mkdir %PackageDIR% | ||
) | ||
cd %PackageDIR% | ||
mkdir %Machine% | ||
xcopy /S /I ..\Release\*.* %Machine% /y | ||
xcopy /S /I ..\sdk\dll\*.* %Machine% /y | ||
cd .. | ||
rmdir /S /Q Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
version: 1.0.{build} | ||
skip_branch_with_pr: true | ||
build: off | ||
|
||
environment: | ||
WindowsAgoraRTCSDK: https://download.agora.io/sdk/release/Agora_Native_SDK_for_Windows(x86)_v3_0_0_FULL.zip | ||
branches: | ||
only: | ||
- master | ||
skip_tags: true | ||
image: Visual Studio 2017 | ||
install: | ||
- ps: (new-object net.webclient).DownloadFile($emv:WindowsAgoraRTCSDK, 'AgoraSDK.zip') | ||
- 7z x AgoraSDK.zip -oAgoraSDK | ||
- set QTDIR32=C:\Qt\5.14.1\msvc2017 | ||
- set QTDIR64=C:\Qt\5.14.1\msvc2017_64 | ||
- cmd: >- | ||
cd Group-Video\OpenVideoCall-Windows | ||
set SDKVersion=3_0_0 | ||
set SDKFolderVersion=3.0.0 | ||
set ProjName=OpenVideoCall | ||
build_script: | ||
- cmd: >- | ||
call build_appveyor_release.bat %SDKVersion% %SDKFolderVersion% x86 %ProjName% | ||
call build_appveyor_release.bat %SDKVersion% %SDKFolderVersion% x64 %ProjName% | ||
7z a -tzip -r OpenVideoCall_Win_v%SDKFolderVersion%.zip %ProjName%_Win_v%SDKFolderVersion% | ||
artifacts: | ||
- path: Group-Video\OpenVideoCall-Windows\OpenVideoCall_Win_v*.zip | ||
name: OpenVideoCall-Windows |