appveyor.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. image:
  2. - Visual Studio 2019
  3. clone_folder: c:\projects\source
  4. environment:
  5. Qt5_INSTALL_DIR: 'C:\Qt\5.15.2\msvc2019_64'
  6. PATH: '%Qt5_INSTALL_DIR%\bin;%PATH%'
  7. build_script:
  8. - cmd: >-
  9. set QTDIR=%Qt5_INSTALL_DIR%
  10. set "VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC"
  11. set "OPENSSL_ROOT_DIR=C:/OpenSSL-v111-Win64"
  12. cmake -S c:\projects\source -B build -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE:STRING=Release -DENABLE_OPENSSL=ON -DRUN_IN_PLACE=OFF
  13. cmake --build build --parallel 2 --config "Release"
  14. cd build
  15. cpack -G WIX -B package
  16. mkdir artifact
  17. cp package/*.msi artifact/.
  18. cp src/Release/*.exe artifact/.
  19. 7z a -tzip artifact.zip artifact/
  20. artifacts:
  21. - path: build\package\*.msi
  22. name: installer
  23. - path: build\src\Release\*.exe
  24. name: executable
  25. - path: build\artifact.zip
  26. name: archive
  27. deploy:
  28. - provider: Webhook
  29. url: https://app.signpath.io/API/v1/042f605f-b378-45d8-ad16-b7695b071036/Integrations/AppVeyor?ProjectSlug=flameshot&SigningPolicySlug=test-signing
  30. #url: https://app.signpath.io/API/v1/042f605f-b378-45d8-ad16-b7695b071036/Integrations/AppVeyor?ProjectSlug=flameshot&SigningPolicySlug=release-signing
  31. authorization:
  32. secure: G5nNnkfRSJ+EEx+7LlUSSoEyoL+pHYItvjrNxbWITE7RB+cm9qzuHRdwmrZdEDjdVCLZ2TkNawynMxYcGMZAQA==