build_2_prepareACdirectory.bat 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. @echo off
  2. set ACDIR=AC
  3. set ACDIRTESTING=AC_testing
  4. echo make sure, that you compiled new binaries in %ACDIRTESTING% folder, tested them and generated fresh config\mapmodelattributes.cfg file (/loadallmapmodels)
  5. pause
  6. rem copy binaries
  7. copy /Y %ACDIRTESTING%\bin_win32\ac_client.exe %ACDIR%\bin_win32\
  8. copy /Y %ACDIRTESTING%\bin_win32\ac_server.exe %ACDIR%\bin_win32\
  9. rem copy mapmodelattributes.cfg
  10. copy /Y %ACDIRTESTING%\profile\config\mapmodelattributes.cfg %ACDIR%\config\
  11. rem copy shadow files
  12. set ACDIRMODELS_SHADOWS=%ACDIRTESTING%\profile\packages\models
  13. copy /Y %ACDIRMODELS_SHADOWS%\misc\gib01\shadows.dat %ACDIR%\packages\models\misc\gib01\shadows.dat
  14. copy /Y %ACDIRMODELS_SHADOWS%\misc\gib02\shadows.dat %ACDIR%\packages\models\misc\gib02\shadows.dat
  15. copy /Y %ACDIRMODELS_SHADOWS%\misc\gib03\shadows.dat %ACDIR%\packages\models\misc\gib03\shadows.dat
  16. copy /Y %ACDIRMODELS_SHADOWS%\pickups\akimbo\shadows.dat %ACDIR%\packages\models\pickups\akimbo\shadows.dat
  17. copy /Y %ACDIRMODELS_SHADOWS%\pickups\ammobox\shadows.dat %ACDIR%\packages\models\pickups\ammobox\shadows.dat
  18. copy /Y %ACDIRMODELS_SHADOWS%\pickups\health\shadows.dat %ACDIR%\packages\models\pickups\health\shadows.dat
  19. copy /Y %ACDIRMODELS_SHADOWS%\pickups\helmet\shadows.dat %ACDIR%\packages\models\pickups\helmet\shadows.dat
  20. copy /Y %ACDIRMODELS_SHADOWS%\pickups\kevlar\shadows.dat %ACDIR%\packages\models\pickups\kevlar\shadows.dat
  21. copy /Y %ACDIRMODELS_SHADOWS%\pickups\nade\shadows.dat %ACDIR%\packages\models\pickups\nade\shadows.dat
  22. copy /Y %ACDIRMODELS_SHADOWS%\pickups\pistolclips\shadows.dat %ACDIR%\packages\models\pickups\pistolclips\shadows.dat
  23. copy /Y %ACDIRMODELS_SHADOWS%\playermodels\shadows.dat %ACDIR%\packages\models\playermodels\shadows.dat
  24. copy /Y %ACDIRMODELS_SHADOWS%\weapons\assault\world\shadows.dat %ACDIR%\packages\models\weapons\assault\world\shadows.dat
  25. copy /Y %ACDIRMODELS_SHADOWS%\weapons\carbine\world\shadows.dat %ACDIR%\packages\models\weapons\carbine\world\shadows.dat
  26. copy /Y %ACDIRMODELS_SHADOWS%\weapons\grenade\static\shadows.dat %ACDIR%\packages\models\weapons\grenade\static\shadows.dat
  27. copy /Y %ACDIRMODELS_SHADOWS%\weapons\grenade\world\shadows.dat %ACDIR%\packages\models\weapons\grenade\world\shadows.dat
  28. copy /Y %ACDIRMODELS_SHADOWS%\weapons\knife\world\shadows.dat %ACDIR%\packages\models\weapons\knife\world\shadows.dat
  29. copy /Y %ACDIRMODELS_SHADOWS%\weapons\pistol\world\shadows.dat %ACDIR%\packages\models\weapons\pistol\world\shadows.dat
  30. copy /Y %ACDIRMODELS_SHADOWS%\weapons\shotgun\world\shadows.dat %ACDIR%\packages\models\weapons\shotgun\world\shadows.dat
  31. copy /Y %ACDIRMODELS_SHADOWS%\weapons\sniper\world\shadows.dat %ACDIR%\packages\models\weapons\sniper\world\shadows.dat
  32. copy /Y %ACDIRMODELS_SHADOWS%\weapons\subgun\world\shadows.dat %ACDIR%\packages\models\weapons\subgun\world\shadows.dat
  33. rem delete stuff related to git and GitHub
  34. rmdir /S /Q %ACDIR%\.git
  35. del %ACDIR%\.gitattributes
  36. del %ACDIR%\.travis.yml
  37. for /r %ACDIR% %%i in (*) do if "%%~nxi"==".gitignore" del "%%i"
  38. rem create config template
  39. 7z a -tzip -aoa %ACDIR%\config\configtemplates.zip %ACDIR%\config\autoexec.cfg %ACDIR%\config\favourites.cfg %ACDIR%\config\pcksources.cfg
  40. rem remove source files (those are available in the source pkg)
  41. rmdir /S /Q %ACDIR%\source
  42. rem delete config and logs
  43. del %ACDIR%\config\autoexec.cfg
  44. del %ACDIR%\config\favourites.cfg
  45. del %ACDIR%\config\pcksources.cfg
  46. del %ACDIR%\config\init*.cfg
  47. del %ACDIR%\config\saved*.cfg
  48. del %ACDIR%\config\servervita*.cfg
  49. del %ACDIR%\config\servers.cfg
  50. del %ACDIR%\config\history
  51. del %ACDIR%\clientlog*.txt
  52. rem delete map files
  53. del %ACDIR%\packages\maps\*.cgz
  54. del %ACDIR%\packages\maps\*.cfg
  55. del %ACDIR%\packages\maps\servermaps\incoming\*.cgz
  56. del %ACDIR%\packages\maps\servermaps\incoming\*.cfg
  57. rem purge screenshots
  58. del /Q %ACDIR%\screenshots\*
  59. rem purge demo directory, but leave tutorial demo, just in case of future use
  60. for %%i in (%ACDIR%\demos\*) do if not "%%~nxi"=="tutorial_demo.dmo" del /Q "%%i"
  61. rem remove linux stuff
  62. for /r %ACDIR% %%i in (*.sh) do del "%%i"
  63. rmdir /S /Q %ACDIR%\bin_unix
  64. pause