appveyor.yml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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\plugins\pv_equip\
  15. md %TMP%\full\ram\
  16. md %TMP%\full\ram\databank\
  17. md %TMP%\update\
  18. md %TMP%\update\patches\
  19. md %TMP%\update\plugins\
  20. md %TMP%\update\plugins\pv_equip\
  21. md %TMP%\amd-pack\
  22. md %TMP%\amd-pack\plugins\
  23. md %TMP%\amd-pack\amd-tools\
  24. md "%TMP%\amd-pack\amd-tools\ARB Patcher Source"
  25. md "%TMP%\amd-pack\amd-tools\ARB Patcher Source\gamesettings"
  26. copy %APPVEYOR_BUILD_FOLDER%\source-code\x64\%CONFIGURATION%\dinput8.dll %TMP%\update\
  27. copy %APPVEYOR_BUILD_FOLDER%\source-code\x64\%CONFIGURATION%\*.dva %TMP%\update\plugins\
  28. del %TMP%\update\plugins\Novidia.dva
  29. copy "%APPVEYOR_BUILD_FOLDER%\source-code\data\README - PD Loader.url" %TMP%\update\
  30. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_base_game.sfv %TMP%\update\
  31. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_base_game.md5 %TMP%\update\
  32. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_mount_data.sfv %TMP%\update\
  33. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_mount_data.md5 %TMP%\update\
  34. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\ShaderPatch.ini %TMP%\update\plugins\
  35. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\patches\custom_freeplay_text_example.p %TMP%\update\patches\
  36. copy %APPVEYOR_BUILD_FOLDER%\source-code\x64\%CONFIGURATION%\dinput8.dll %TMP%\full\
  37. copy %APPVEYOR_BUILD_FOLDER%\source-code\x64\%CONFIGURATION%\*.dva %TMP%\full\plugins\
  38. del %TMP%\full\plugins\Novidia.dva
  39. copy "%APPVEYOR_BUILD_FOLDER%\source-code\data\README - PD Loader.url" %TMP%\full\
  40. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_base_game.sfv %TMP%\full\
  41. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_base_game.md5 %TMP%\full\
  42. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_mount_data.sfv %TMP%\full\
  43. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_mount_data.md5 %TMP%\full\
  44. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\glut32.dll %TMP%\full\
  45. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\*.* %TMP%\full\plugins\
  46. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\pv_equip\*.* %TMP%\full\plugins\pv_equip\
  47. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\ram\databank\*.dat %TMP%\full\ram\databank\
  48. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\patches\custom_freeplay_text_example.p %TMP%\full\patches\
  49. copy %APPVEYOR_BUILD_FOLDER%\source-code\x64\%CONFIGURATION%\Novidia.dva %TMP%\amd-pack\plugins\
  50. copy %APPVEYOR_BUILD_FOLDER%\source-code\data\amd-tools\*.* %TMP%\amd-pack\amd-tools\
  51. copy "%APPVEYOR_BUILD_FOLDER%\source-code\data\amd-tools\ARB Patcher Source\*.*" "%TMP%\amd-pack\amd-tools\ARB Patcher Source\"
  52. copy "%APPVEYOR_BUILD_FOLDER%\source-code\data\amd-tools\ARB Patcher Source\gamesettings\*.*" "%TMP%\amd-pack\amd-tools\ARB Patcher Source\gamesettings\"
  53. cd %TMP%\full\
  54. echo del dnsapi.dll > "DELETE DNSAPI.DLL.bat"
  55. 7z a %APPVEYOR_BUILD_FOLDER%\PD-Loader-%CONFIGURATION%-AppVeyor.zip *
  56. ren dinput8.dll dnsapi.dll
  57. del "DELETE DNSAPI.DLL.bat"
  58. 7z a %APPVEYOR_BUILD_FOLDER%\PD-Loader-%CONFIGURATION%-AppVeyor-Vista7.zip *
  59. cd %TMP%\update\
  60. echo del dnsapi.dll > "DELETE DNSAPI.DLL.bat"
  61. 7z a %APPVEYOR_BUILD_FOLDER%\PD-Loader-%CONFIGURATION%-Update-AppVeyor.zip *
  62. ren dinput8.dll dnsapi.dll
  63. del "DELETE DNSAPI.DLL.bat"
  64. 7z a %APPVEYOR_BUILD_FOLDER%\PD-Loader-%CONFIGURATION%-Update-AppVeyor-Vista7.zip *
  65. cd %TMP%\amd-pack\amd-tools\
  66. C:\Python38\python.exe -m pip install cx_freeze
  67. C:\Python38\Scripts\cxfreeze.exe "ARB Patcher Source\main.py" --target-dir "ARB Patcher"
  68. mkdir "ARB Patcher\gamesettings"
  69. copy "ARB Patcher Source\gamesettings\*.*" "ARB Patcher\gamesettings\"
  70. del /Q "ARB Patcher Source\gamesettings"
  71. rmdir "ARB Patcher Source\gamesettings"
  72. del /Q "ARB Patcher Source"
  73. rmdir "ARB Patcher Source"
  74. del "patch shaders py.bat"
  75. cd ..
  76. move amd-tools\README.txt AMD-README.txt
  77. 7z a %APPVEYOR_BUILD_FOLDER%\PD-Loader-%CONFIGURATION%-AMDPack-AppVeyor.zip *
  78. artifacts:
  79. - path: PD-Loader-*.zip