appveyor.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # it seems that Qt is only installed by default on unstable os at the moment
  2. os: unstable
  3. # shallow clone
  4. clone_depth: 1
  5. environment:
  6. QTDIR: C:\Qt\5.4\msvc2013_opengl
  7. MEGA_EMAIL:
  8. secure: dLyH/46MKKuCZyozkwwVGCL7nVyX+Cxyo1hVlCUaQDU=
  9. MEGA_PASSWORD:
  10. secure: ozgp54EZj98kcbD/O+Xl5Q==
  11. platform:
  12. - Win32
  13. configuration:
  14. - Release
  15. install:
  16. - git submodule update --init --recursive
  17. before_build:
  18. - mkdir build
  19. - cd build
  20. - cmake ..
  21. - cd ..
  22. after_build:
  23. # upload the build to Mega
  24. - cinst wget -x86
  25. - wget -q http://megatools.megous.com/builds/megatools-1.9.94-win64.zip
  26. # extract megatools silently. See http://stackoverflow.com/a/11629736/1748450
  27. - 7z x megatools-1.9.94-win64.zip | FIND /V "ing "
  28. # copy the qt dlls
  29. - copy C:\Qt\5.4\msvc2013_opengl\bin\icudt53.dll build\bin\release
  30. - copy C:\Qt\5.4\msvc2013_opengl\bin\icuin53.dll build\bin\release
  31. - copy C:\Qt\5.4\msvc2013_opengl\bin\icuuc53.dll build\bin\release
  32. - copy C:\Qt\5.4\msvc2013_opengl\bin\Qt5Core.dll build\bin\release
  33. - copy C:\Qt\5.4\msvc2013_opengl\bin\Qt5Gui.dll build\bin\release
  34. - copy C:\Qt\5.4\msvc2013_opengl\bin\Qt5OpenGL.dll build\bin\release
  35. - copy C:\Qt\5.4\msvc2013_opengl\bin\Qt5Widgets.dll build\bin\release
  36. - mkdir build\bin\release\platforms\
  37. - copy C:\Qt\5.4\msvc2013_opengl\plugins\platforms\qwindows.dll build\bin\release\platforms
  38. # zip up the build folder -> build.7z
  39. - 7z a build .\build\bin\release\*
  40. # rename, upload to Mega
  41. - npm install sanitize-filename
  42. - cd megatools-1.9.94-win64
  43. - node ..\upload_to_mega.js