Skip to content

Commit

Permalink
Улучшение скрипта
Browse files Browse the repository at this point in the history
  • Loading branch information
MahBoiDeveloper committed Mar 25, 2024
1 parent 3ddfd7a commit f746309
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions zBuild.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@echo off
chcp 65001 > nul
set mix=ecache98

echo Delete build cache...
rmdir /q /s Build > nul 2> nul
Expand All @@ -10,12 +9,10 @@ mkdir Build\MIX
echo Copy files...
xcopy Source\* Build\* /e /y

echo Compiling %mix%.mix...
for /f "tokens=*" %%f in ('dir "Build\MIX\" /a:d /b /s') do (
Tools\ccmix.exe --create --lmd --game=ra2 --dir "%%f" --mix %%f.mix
rmdir /q /s %%f > nul 2> nul
for /f "tokens=*" %%f in ('dir "Build\MIX\" /a:d /b') do (
echo Compiling %%f.mix...
Tools\ccmix.exe --create --lmd --game=ra2 --dir "Build\MIX\%%f" --mix "Build\MIX\%%f.mix"
rmdir /q /s Build\MIX\%%f
)
cd ..\..\
rmdir /q /s Build\%mix% > nul 2> nul

echo Done. Please, check Build folder.

0 comments on commit f746309

Please sign in to comment.