mirror of https://github.com/procxx/kepka.git
Extract Appveyor scripts into separate files (#57)
This commit is contained in:
parent
dde6ba57a8
commit
05b766a460
|
@ -0,0 +1,4 @@
|
|||
vcpkg install --triplet x64-windows openal-soft openssl opus zlib ffmpeg
|
||||
appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip
|
||||
mkdir %APPVEYOR_BUILD_FOLDER%\build
|
||||
7z x ninja-win.zip -o%APPVEYOR_BUILD_FOLDER%\build > nul
|
|
@ -0,0 +1,2 @@
|
|||
set PATH=C:\Python35;%QT_DIR%\bin;%PATH%
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
|
@ -0,0 +1,4 @@
|
|||
pushd %APPVEYOR_BUILD_FOLDER%\build
|
||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
||||
cmake --build . --config RelWithDebInfo
|
||||
popd
|
|
@ -0,0 +1,4 @@
|
|||
vcpkg install --triplet x64-windows openal-soft openssl opus zlib ffmpeg
|
||||
appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip
|
||||
mkdir %APPVEYOR_BUILD_FOLDER%\build
|
||||
7z x ninja-win.zip -o%APPVEYOR_BUILD_FOLDER%\build > nul
|
32
appveyor.yml
32
appveyor.yml
|
@ -26,40 +26,16 @@ environment:
|
|||
qt_dir: C:\Qt\5.9\msvc2017_64
|
||||
|
||||
install:
|
||||
- cmd: >-
|
||||
vcpkg install --triplet x64-windows openal-soft openssl opus zlib ffmpeg
|
||||
|
||||
appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip
|
||||
|
||||
mkdir %APPVEYOR_BUILD_FOLDER%\build
|
||||
|
||||
7z x ninja-win.zip -o%APPVEYOR_BUILD_FOLDER%\build > nul
|
||||
- cmd: .appveyor\install.cmd
|
||||
|
||||
before_build:
|
||||
- cmd: >-
|
||||
set PATH=C:\Python35;%QT_DIR%\bin;%PATH%
|
||||
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||
|
||||
cd %APPVEYOR_BUILD_FOLDER%\build
|
||||
- cmd: .appveyor\before_build.cmd
|
||||
|
||||
build_script:
|
||||
- cmd: >-
|
||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
||||
|
||||
cmake --build . --config RelWithDebInfo
|
||||
- cmd: .appveyor\build.cmd
|
||||
|
||||
after_build:
|
||||
- cmd: >-
|
||||
for %%f in (Qt5Core,Qt5Gui,Qt5Network,Qt5Widgets) do xcopy %QT_DIR%\bin\%%f.dll Telegram /Q /Y /I
|
||||
|
||||
xcopy %QT_DIR%\plugins\imageformats\qwebp.dll Telegram\imageformats\ /Q /Y /I
|
||||
|
||||
xcopy %QT_DIR%\plugins\imageformats\qjpeg.dll Telegram\imageformats\ /Q /Y /I
|
||||
|
||||
xcopy %QT_DIR%\plugins\platforms\qwindows.dll Telegram\platforms\ /Q /Y /I
|
||||
|
||||
7z a -mmt kepka.zip Telegram\Telegram.exe Telegram\Telegram.pdb Telegram\*.dll Telegram\platforms\* Telegram\imageformats\*
|
||||
- ps: .appveyor\after_build.cmd
|
||||
|
||||
artifacts:
|
||||
- path: build\kepka.zip
|
||||
|
|
Loading…
Reference in New Issue