forked from Trojan-Qt5/Trojan-Qt5
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.appveyor.yml
82 lines (77 loc) · 3.59 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
image:
- Visual Studio 2019
install:
- set _TROJAN_QT5_BUILD_INFO_=Trojan-Qt5 build from AppVeyor
- set QTDIR=C:\Qt\5.14.2\msvc2017\bin
- set PYDIR=C:\Python36
- set GODIR=C:\go114-x86\bin
- set GOROOT=C:\go114-x86
- set MINGWDIR=C:\MinGW\bin
- git clone https://github.com/Trojan-Qt5/Trojan-Qt5-Libraries.git C:\TQLibraries
- cd C:\TQLibraries
- 7z x Grpc.7z
- cd C:\projects\trojan-qt5
- curl -LO https://slproweb.com/download/Win32OpenSSL-1_1_1g.exe
- powershell ".\\Win32OpenSSL-1_1_1g.exe /silent /sp- /suppressmsgboxes /DIR='C:\\TQLibraries\\OpenSSL-Win32'"
- set PATH=%QTDIR%;%GODIR%;%PYDIR%;%MINGWDIR%;%PATH%;
- git submodule update --init --recursive
- cd 3rd\yaml-cpp && cmake -G "Visual Studio 16 2019" -A Win32 .
- msbuild YAML_CPP.sln /p:Configuration=Release /p:Platform="Win32"
- cd ..\..
- cd 3rd\trojan-qt5-core
- set GOARCH=386
- go env -w GOPROXY=direct
- go env -w GOSUMDB=off
- go build --tags "api client router" -buildmode=c-shared -o Trojan-Qt5-Core.dll main.go
- process.bat
- python msvc.py
- cd ../..
init:
- C:\"Program Files (x86)"\"Microsoft Visual Studio"\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x86
build_script:
- mkdir build && cd build
- qmake CONFIG+=release ..
- nmake
- cd release
- windeployqt trojan-qt5.exe
- del *.o *.h *.cpp *.stash *.qrc *.obj *.opt Makefile
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5-Scripts/raw/master/move.py
- python move.py
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5-DLL/raw/master/libiconv-2.dll
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5-DLL/raw/master/libzbar-0.dll
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5-DLL/raw/master/libssl-1_1.dll
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5-DLL/raw/master/libcrypto-1_1.dll
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5-DLL/raw/master/WinSparkle.dll
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5-DLL/raw/master/cares.dll
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5-DLL/raw/master/libprotobuf.dll
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5-DLL/raw/master/libgcc_s_dw2-1.dll
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5-DLL/raw/master/zlib1.dll
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5-DLL/raw/master/Trojan-Qt5-Route.dll
- del /f /s /q qtcolorpicker.moc trojan-qt5.exp trojan-qt5.lib trojan-qt5_resource.res vc_redist.x86.exe opengl32sw.dll d3dcompiler_47.dll libGLESV2.dll libEGL.dll move.py imageformats\qgif.dll imageformats\qtga.dll imageformats\qtiff.dll imageformats\qwbmp.dll imageformats\qwebp.dll bearer
- rmdir bearer
- 7z a Trojan-Qt5-Windows.7z *
- 7z a Trojan-Qt5-Windows.zip * -xr!*.7z
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5/raw/master/LICENSE
- curl -LO https://github.com/Trojan-Qt5/Trojan-Qt5/raw/master/resources/installer.nsi
- set NSISDIR=C:\Program Files (x86)\NSIS
- set PATH=%NSISDIR%;%PATH%;
- makensis installer.nsi
- python ..\..\scripts\checksum.py Trojan-Qt5-Windows.7z Trojan-Qt5-Windows.7z.hash
- python ..\..\scripts\checksum.py Trojan-Qt5-Windows.zip Trojan-Qt5-Windows.zip.hash
- python ..\..\scripts\checksum.py Trojan-Qt5-Windows.exe Trojan-Qt5-Windows.exe.hash
- cd ..
- cd ..
artifacts:
- path: 'build\release\Trojan-Qt5-Windows.*'
name: Trojan-Qt5
deploy:
provider: GitHub
description: "Trojan-Qt5 Release"
auth_token:
secure: tCne2EbTzTpOYeqGO6ngzToxUTYLbxsEA+fNskPfK7fdj1sqy3YrdR+P1XwdDBKf
artifact: Trojan-Qt5
draft: false
prerelease: false
on:
branch: master
APPVEYOR_REPO_TAG: true