-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
89 lines (78 loc) · 2.96 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
83
84
85
86
87
88
89
version: '0.5.008.1.{build}'
target: Liluim_Lis
environment:
# these variables are common to all jobs
RUNTIME_LINKAGE: static
QT_VERSION: 5.15
QT_LINKAGE: static
COVERITY_BUILD_CANDIDATE: True
matrix:
- job_name: VisualStudio19
MSVC_VERSION: 19
QTDIR: C:\Qt\%QT_VERSION%\msvc2019_64
PRJLIBS: VCRUNTIME140.dll MSVCP140.dll ucrtbased.dll
QTqmake: qmake.exe
QTmake: nmake
- job_name: MinGwin64
QTDIR: C:\Qt\%QT_VERSION%\mingw81_64
PRJLIBS: libgcc_s_seh-1.dll libstdc++-6.dll libwinpthread-1.dll
QTqmake: qmake.exe
QTmake: mingw32-make.exe -j2 in %APPVEYOR_BUILD_FOLDER%
-job_name: Lin
QTDIR: $HOME/Qt/6.0.0/gcc_64/bin
QTqmake: qmake
QTmake: make -j2 in %APPVEYOR_BUILD_FOLDER%
platform:
- x86
- Any CPU
configuration:
- Debug
- Release
install:
# Set and load necessary variables
- '%QTDIR%\bin\qtenv2.bat'
- %QTqmake% -v
- set PRJLIBDIR=%WINDIR%\SysWOW64 # Find vclibss
- set QTDIR
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
- set BIN=target
before_build:
# Prepare the out-of-source build directory.
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir %APPVEYOR_BUILD_FOLDER%-build
- %QTqmake% -o %APPVEYOR_BUILD_FOLDER%-build -r -Wall -Wlogic -Wparser CONFIG+=%CONFIGURATION% %APPVEYOR_BUILD_FOLDER%
build_script:
# Compile it and check for .exe
- cd %APPVEYOR_BUILD_FOLDER%-build
- %QTmake%
- dir /b /s *.exe
after_build:
# Add a link to the build output within the source directory. This is needed because AppVeyor does
# not support extracting artifacts from out-of-source build directories. See 'artifacts' below.
- echo "Agregando youtube-dl"
- $source = "https://youtube-dl.org/downloads/latest/youtube-dl.exe"
- $destination = "%APPVEYOR_BUILD_FOLDER%\youtube-dl.exe"
- Invoke-WebRequest $source -OutFile $destination
- dir /b /s *.exe
- mkdir deploy
- copy %APPVEYOR_BUILD_FOLDER%-build\%CONFIGURATION%\%BIN%.exe deploy\%BIN%.exe
- windeployqt --qmldir %APPVEYOR_BUILD_FOLDER%/qml --%CONFIGURATION% deploy/%BIN%.exe --verbose=2
- for %%I in (%PRJLIBS%) do copy %PRJLIBDIR%\%%I deploy\
- 7z a x=9 yx=9 tr=off tm=off mf=bt4 fb=273 mc=1000000000 d=1536M %BIN%_%CONFIGURATION%.7z deploy -r
- copy %APPVEYOR_BUILD_FOLDER%-build\%BIN%_%CONFIGURATION%.7z %APPVEYOR_BUILD_FOLDER%\%BIN%_%CONFIGURATION%.7z
- dir /b /s *.zip
artifacts:
- path: '%BIN%_%CONFIGURATION%.zip'
name: '%BIN%'
deploy:
release: myproduct-v$(APPVEYOR_BUILD_VERSION)
description: 'Auto Build'
provider: GitHub
# auth_token:
# secure: <your encrypted token> # your encrypted token from GitHub
artifact: '%BIN%' # upload all NuGet packages to release assets
draft: false
prerelease: true
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: true