How does AppVeyor work

This commit is contained in:
ArsenArsen 2017-07-05 20:10:39 +02:00
parent d2ff0e9648
commit e44c90098b
2 changed files with 39 additions and 19 deletions

View File

@ -113,8 +113,12 @@ HEADERS += mainwindow.hpp \
uploaders/default/imgplusuploader.hpp \
filenamevalidator.hpp
CONFIG += link_pkgconfig
PKGCONFIG += libavformat libavcodec libswscale libavutil
nopkg {
LIBS += -lavcodec -lavformat -lavutil -lswscale
} else {
CONFIG += link_pkgconfig
PKGCONFIG += libavformat libavcodec libswscale libavutil
}
mac {
ICON = icons/icon.icns
@ -149,7 +153,8 @@ FORMS += mainwindow.ui \
DISTFILES += \
README.md \
LICENSE \
OlderSystemFix.patch
OlderSystemFix.patch \
appveyor.yml
RESOURCES += \
icon.qrc

15
appveyor.yml Normal file
View File

@ -0,0 +1,15 @@
enviroment:
QTDIR: C:\Qt\5.9\mingw53_32
PATH: %PATH%;%QTDIR%\bin;C:\MinGW\bin
build_script:
- git submodule update --init --recursive
- qmake CONFIG+=nopkg KShare.pro
- curl -kLO https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-3.3.2-win64-dev.zip
- 7z x ffmpeg-3.3.2-win64-dev.zip
- set CPATH=ffmpeg-3.3.2-win64-dev\include;%CPATH%
- curl -kLO https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-3.3.2-win64-static.zip
- 7z x ffmpeg-3.3.2-win64-static.zip
- set LIBRARY_PATH=ffmpeg-3.3.2-win64-static\lib;%LIBRARY_PATH%
- mingw32-make -j8
artifacts:
- path: release/KShare.exe