environment:
  QTDIR: C:\Qt\5.9\mingw53_32
platform: x86
build_script:
  - dir
  - mkdir build
  - cd build
  - set PATH=%PATH%;%QTDIR%\bin;C:\Qt\Tools\mingw530_32\bin;C:\MinGW\msys\1.0\bin
  - git submodule update --init --recursive
  - 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 FFMPEG_DEV_PATH=%CD%\ffmpeg-3.3.2-win64-dev
  - curl -kLO https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-3.3.2-win64-shared.zip
  - 7z x ffmpeg-3.3.2-win64-shared.zip
  - set FFMPEG_SHARED_PATH=%cd%\ffmpeg-3.3.2-win64-shared
  - curl -v -L --http1.1 --tlsv1.2 "https://downloads.sourceforge.net/project/qtav/depends/QtAV-depends-windows-x86+x64.7z" -o av.7z
  - 7z x av.7z > NUL
  - xcopy ffmpeg-3.3.2-win64-shared\* %QTDIR% /e /i /Y
  - xcopy ffmpeg-3.3.2-win64-dev\* %QTDIR% /e /i /Y
  - xcopy QtAV-depends-windows-x86+x64\* %QTDIR% /e /i /Y
  - qmake CONFIG+=nopkg ../KShare.pro
  - mingw32-make.exe -j%NUMBER_OF_PROCESSORS%
  - copy src\release\kshare.exe ..\KShare.exe
  - cd ..
  - bash AppVeyor\make_installer.sh
artifacts:
  - path: KShare.exe
    name: Shared link
  - path: installer.exe
    name: Installer
  - path: portable.zip
    name: Portable version
