appveyor.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. version: '{build}'
  2. image: Visual Studio 2019
  3. configuration:
  4. - Release
  5. platform: x64
  6. build:
  7. project: source-code/PD-Loader.sln
  8. verbosity: minimal
  9. after_build:
  10. - cmd: >-
  11. md %TMP%\full\
  12. md %TMP%\full\patches\
  13. md %TMP%\full\plugins\
  14. md %TMP%\full\ram\
  15. md %TMP%\full\ram\databank_template\
  16. md %TMP%\amd-pack\
  17. md %TMP%\amd-pack\plugins\
  18. md "%TMP%\amd-pack\plugins\Novidia Shaders"
  19. md %TMP%\amd-pack\amd-tools\
  20. md "%TMP%\amd-pack\amd-tools\AFT Shader Patcher Source"
  21. md "%TMP%\amd-pack\amd-tools\AFT Shader Patcher Source\ARB Patcher"
  22. md "%TMP%\amd-pack\amd-tools\AFT Shader Patcher Source\ARB Patcher\gamesettings"
  23. copy %APPVEYOR_BUILD_FOLDER%\source-code\x64\%CONFIGURATION%\dnsapi.dll %TMP%\full\
  24. copy %APPVEYOR_BUILD_FOLDER%\source-code\x64\%CONFIGURATION%\*.dva %TMP%\full\plugins\
  25. del %TMP%\full\plugins\Novidia.dva
  26. copy "%APPVEYOR_BUILD_FOLDER%\source-code\data\README - PD Loader.url" %TMP%\full\
  27. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_base_game.sfv %TMP%\full\
  28. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_base_game.md5 %TMP%\full\
  29. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_mount_data.sfv %TMP%\full\
  30. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_mount_data.md5 %TMP%\full\
  31. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\glut32.dll %TMP%\full\
  32. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\*.* %TMP%\full\plugins\
  33. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\ram\databank_template\*.dat %TMP%\full\ram\databank_template\
  34. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\patches\custom_freeplay_text_example.p %TMP%\full\patches\
  35. copy %APPVEYOR_BUILD_FOLDER%\source-code\x64\%CONFIGURATION%\Novidia.dva %TMP%\amd-pack\plugins\
  36. copy "%APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\Novidia Shaders\*.*" "%TMP%\amd-pack\plugins\Novidia Shaders\"
  37. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\amd-tools\*.* %TMP%\amd-pack\amd-tools\
  38. copy "%APPVEYOR_BUILD_FOLDER%\source-code\data\amd-tools\AFT Shader Patcher\*.*" "%TMP%\amd-pack\amd-tools\AFT Shader Patcher Source\"
  39. copy "%APPVEYOR_BUILD_FOLDER%\source-code\data\amd-tools\AFT Shader Patcher\ARB Patcher\*.*" "%TMP%\amd-pack\amd-tools\AFT Shader Patcher Source\ARB Patcher\"
  40. copy "%APPVEYOR_BUILD_FOLDER%\source-code\data\amd-tools\AFT Shader Patcher\ARB Patcher\gamesettings\*.*" "%TMP%\amd-pack\amd-tools\AFT Shader Patcher Source\ARB Patcher\gamesettings\"
  41. cd %TMP%\full\
  42. 7z a %APPVEYOR_BUILD_FOLDER%\PD-Loader-%CONFIGURATION%-AppVeyor.zip *
  43. cd %TMP%\amd-pack\amd-tools\
  44. C:\Python38\python.exe -m pip install cx_freeze construct
  45. C:\Python38\Scripts\cxfreeze.exe "AFT Shader Patcher Source\aft_shader_patcher.py" --target-dir "AFT Shader Patcher"
  46. mkdir "AFT Shader Patcher\ARB Patcher"
  47. mkdir "AFT Shader Patcher\ARB Patcher\gamesettings"
  48. copy "AFT Shader Patcher Source\xdelta3.exe" "AFT Shader Patcher\"
  49. copy "AFT Shader Patcher Source\ARB Patcher\*.*" "AFT Shader Patcher\ARB Patcher\"
  50. copy "AFT Shader Patcher Source\ARB Patcher\gamesettings\*.*" "AFT Shader Patcher\ARB Patcher\gamesettings\"
  51. del /Q "AFT Shader Patcher Source\ARB Patcher\gamesettings"
  52. rmdir "AFT Shader Patcher Source\ARB Patcher\gamesettings"
  53. del /Q "AFT Shader Patcher Source\ARB Patcher"
  54. rmdir "AFT Shader Patcher Source\ARB Patcher"
  55. del /Q "AFT Shader Patcher Source"
  56. rmdir "AFT Shader Patcher Source"
  57. del "patch shaders py.bat"
  58. del ".gitignore"
  59. cd ..
  60. move amd-tools\README.txt AMD-README.txt
  61. 7z a %APPVEYOR_BUILD_FOLDER%\PD-Loader-%CONFIGURATION%-AMDPack-AppVeyor.zip *
  62. artifacts:
  63. - path: PD-Loader-*.zip