build_2_prepareACdirectory.bat 3.9 KB

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