forked from Trojan-Qt5/Trojan-Qt5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
54 lines (49 loc) · 2.33 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
image:
- Visual Studio 2019
install:
- set QTDIR=C:\Qt\5.14.1\msvc2017\bin
- set PYDIR=C:\Python36
- git clone https://github.com/TheWanderingCoel/Trojan-Qt5-Libraries.git C:\TQLibraries
- curl -Lo boost_1_72_0-msvc-14.2-32.exe https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-32.exe/download
- powershell ".\\boost_1_72_0-msvc-14.2-32.exe /SILENT /SP- /SUPPRESSMSGBOXES /DIR='C:\TQLibraries\boost_1_72_0'"
- set PATH=%QTDIR%;%PYDIR%;%PATH%;
- git submodule update --init --recursive
- cd 3rd\qthttpserver && qmake && nmake && nmake install
- cd ..\..
- cd 3rd\yaml-cpp && cmake -G "Visual Studio 16 2019" -A Win32 .
- msbuild YAML_CPP.sln /p:Configuration=Release /p:Platform="Win32"
- cd ..\..
init:
- C:\"Program Files (x86)"\"Microsoft Visual Studio"\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x86
build_script:
- mkdir build && cd build
- qmake ..
- nmake
- cd release
- windeployqt trojan-qt5.exe
- del *.o *.h *.cpp *.stash *.qrc *.obj Makefile
- curl -LO https://github.com/TheWanderingCoel/Trojan-Qt5-DLL/raw/master/libiconv-2.dll
- curl -LO https://github.com/TheWanderingCoel/Trojan-Qt5-DLL/raw/master/libzbar-0.dll
- curl -LO https://github.com/TheWanderingCoel/Trojan-Qt5-DLL/raw/master/libssl-1_1.dll
- curl -LO https://github.com/TheWanderingCoel/Trojan-Qt5-DLL/raw/master/libcrypto-1_1.dll
- curl -LO https://github.com/TheWanderingCoel/Trojan-Qt5-DLL/raw/master/WinSparkle.dll
- del /f /s /q vc_redist.x86.exe opengl32sw.dll d3dcompiler_47.dll libGLESV2.dll libEGL.dll Qt5Svg.dll imageformats\qgif.dll iconengines\qsvgicon.dll imageformats\qtga.dll imageformats\qtiff.dll imageformats\qwbmp.dll imageformats\qwebp.dll imageformats\qjpeg.dll imageformats\qsvg.dll iconengines bearer vc_redist.x86.exe
- rmdir iconengines bearer
- 7z a Trojan-Qt5-Windows.zip *
- python ..\..\scripts\checksum.py Trojan-Qt5-Windows.zip Trojan-Qt5-Windows.hash
- cd ..
- cd ..
artifacts:
- path: 'build\release\Trojan-Qt5-Windows.*'
name: Trojan-Qt5
deploy:
provider: GitHub
description: "Trojan-Qt5 Release"
auth_token:
secure: uAMRAuhJjhHbPRvsKDUGYBDrrDPhlj2q1zHICgjSo7K2CSmVMxHreSMJYqer4y2k
artifact: Trojan-Qt5
draft: false
prerelease: false
on:
branch: master
APPVEYOR_REPO_TAG: true