Skip to content

Commit

Permalink
Изменение скриптовой системы запуска действий с проектом
Browse files Browse the repository at this point in the history
  • Loading branch information
MahBoiTranslator committed Nov 21, 2022
1 parent 62f8746 commit 2a9afea
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 44 deletions.
17 changes: 3 additions & 14 deletions Build.bat
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
@echo off

: Сборка .big файла перевода
mkdir Translation
start Tools\MakeBig.exe -f -o:Translation\GenEvo_B0.3_English.big Source\csf

: "Сборка" клиента
mkdir Translation\Launcher
copy Source\readme.txt Translation\readme.txt
xcopy /h /y /c /r /s Source\Launcher\* Translation\Launcher\*

: "Сборка" карт
mkdir Translation\Maps
xcopy /h /y /c /r /s Source\Maps\* Translation\Maps\*
del Translation\Maps\readme.md
del /a:h Translation\Maps\.git
: Запуск скрипта дяя сборки русификатора
cd Scripts
call Build.bat
5 changes: 5 additions & 0 deletions BuildBigAndRun.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off

: Запуск скрипта дяя сборки русификатора
cd Scripts
call runtest.bat
5 changes: 5 additions & 0 deletions CopyMapsToAppdata.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off

: Запуск скрипта дяя сборки русификатора
cd Scripts
call CopyMapsToAppdata.bat
17 changes: 17 additions & 0 deletions Scripts/Build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo off

cd ..
: Сборка .big файла с переводом
mkdir Translation
start Tools\MakeBig.exe -f -o:Translation\GenEvo_B0.3_English.big Source\csf

: Сборка клиента
mkdir Translation\Launcher
copy Source\readme.txt Translation\readme.txt
xcopy /h /y /c /r /s Source\Launcher\* Translation\Launcher\*

: Сборка карт
mkdir Translation\Maps
xcopy /h /y /c /r /s Source\Maps\* Translation\Maps\*
del Translation\Maps\*.md Translation\Maps\*.str
del /a:h Translation\Maps\.git
2 changes: 2 additions & 0 deletions BuildWithoutMaps.bat → Scripts/BuildWithoutMaps.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@echo off

cd ..
: Сборка .big файла перевода
mkdir Translation
start Tools\MakeBig.exe -f -o:Translation\GenEvo_B0.3_English.big Source\csf
Expand All @@ -8,3 +9,4 @@ start Tools\MakeBig.exe -f -o:Translation\GenEvo_B0.3_English.big Source\csf
mkdir Translation\Launcher
copy Source\readme.txt Translation\readme.txt
xcopy /h /y /c /r /s Source\Launcher\* Translation\Launcher\*
cd Scripts
6 changes: 6 additions & 0 deletions Scripts/CopyMapsToAppdata.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off

: Копирование карт из текущего репозитория в %appdata%
xcopy /h /y /c /r /s ..\Source\Maps\* %appdata%\"Red Alert 3"\Maps\*
del /a:h %appdata%\"Red Alert 3"\Maps\.git
del %appdata%\"Red Alert 3"\Maps\*.str %appdata%\"Red Alert 3"\Maps\*.md
11 changes: 11 additions & 0 deletions Scripts/runTest.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off

: Сборка и копирование файлов локализации
call BuildWithoutMaps.bat
xcopy /h /y /c /r /s ..\Translation\GenEvo_B0.3_English.big %USERPROFILE%\Documents\"Red Alert 3"\Mods\GenEvo\GenEvo_B0.3_English.big

: Задержка необходима для того, чтобы файлы успели скопироваться
timeout /t 3

: Запуск игры
start %USERPROFILE%\Documents\"Red Alert 3"\Mods\GenEvo\GenEvoLauncher.exe
13 changes: 13 additions & 0 deletions Scripts/runTestWithMapsCoping.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@echo off

: Сборка и копирование файлов локализации
@call BuildWithoutMaps.bat
xcopy /h /y /c /r /s ..\Translation\Launcher\* %USERPROFILE%\Documents\"Red Alert 3"\Mods\GenEvo\Launcher\*
xcopy /h /y /c /r /s ..\Translation\GenEvo_B0.3_English.big %USERPROFILE%\Documents\"Red Alert 3"\Mods\GenEvo\GenEvo_B0.3_English.big
@call CopyMapsToAppdata.bat

: Задержка необходима для того, чтобы файлы успели скопироваться
timeout /t 3

: Запуск игры
@start %USERPROFILE%\Documents\"Red Alert 3"\Mods\GenEvo\GenEvoLauncher.exe
18 changes: 0 additions & 18 deletions runTest.bat

This file was deleted.

12 changes: 0 additions & 12 deletions runTestWithoutMapsCoping.bat

This file was deleted.

0 comments on commit 2a9afea

Please sign in to comment.