diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml new file mode 100644 index 0000000..153796f --- /dev/null +++ b/.github/workflows/Build.yml @@ -0,0 +1,31 @@ +name: Build Project + +# Workflow will trigger on any push to the master/main branch +on: + push: + branches: + - master + - main + +jobs: + Build: + # Building server + runs-on: windows-2022 + # Commands to complete task + steps: + + # Cloning all repository + - name: Get Sources + uses: actions/checkout@v4 + + # Compile it via shitty .bat file + - name: Compile Project + shell: cmd + run: zBuild.bat + + # Upload artifact to the GitHub + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: TI_RU-${{github.sha}} + path: Build/** diff --git a/.gitignore b/.gitignore index 06113da..66aae5c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ # В папке должна содержаться актуальная версия мода, чтобы на него можно было накатить изменения для тестирования _Test +Build diff --git a/Source/MIX/ecache98.mix b/Source/MIX/ecache98.mix deleted file mode 100644 index c3c5d23..0000000 Binary files a/Source/MIX/ecache98.mix and /dev/null differ diff --git a/Source/ecache98/12metfnt.fnt b/Source/ecache98/12metfnt.fnt new file mode 100644 index 0000000..b571a54 Binary files /dev/null and b/Source/ecache98/12metfnt.fnt differ diff --git a/Source/ecache98/6point.fnt b/Source/ecache98/6point.fnt new file mode 100644 index 0000000..3a32699 Binary files /dev/null and b/Source/ecache98/6point.fnt differ diff --git a/Source/ecache98/8point.fnt b/Source/ecache98/8point.fnt new file mode 100644 index 0000000..d28928a Binary files /dev/null and b/Source/ecache98/8point.fnt differ diff --git a/Source/ecache98/cache.mix b/Source/ecache98/cache.mix new file mode 100644 index 0000000..35e5bf6 Binary files /dev/null and b/Source/ecache98/cache.mix differ diff --git a/Source/ecache98/dlgsysa.pcx b/Source/ecache98/dlgsysa.pcx new file mode 100644 index 0000000..39103e7 Binary files /dev/null and b/Source/ecache98/dlgsysa.pcx differ diff --git a/Source/ecache98/dlgsysi.pcx b/Source/ecache98/dlgsysi.pcx new file mode 100644 index 0000000..d00aa32 Binary files /dev/null and b/Source/ecache98/dlgsysi.pcx differ diff --git a/Source/ecache98/editfnt.fnt b/Source/ecache98/editfnt.fnt new file mode 100644 index 0000000..8e0a909 Binary files /dev/null and b/Source/ecache98/editfnt.fnt differ diff --git a/Source/ecache98/fullfnt3.shp b/Source/ecache98/fullfnt3.shp new file mode 100644 index 0000000..65325a8 Binary files /dev/null and b/Source/ecache98/fullfnt3.shp differ diff --git a/Source/ecache98/grad6fnt.fnt b/Source/ecache98/grad6fnt.fnt new file mode 100644 index 0000000..4d0d226 Binary files /dev/null and b/Source/ecache98/grad6fnt.fnt differ diff --git a/Source/ecache98/kia6pt.fnt b/Source/ecache98/kia6pt.fnt new file mode 100644 index 0000000..8c39a07 Binary files /dev/null and b/Source/ecache98/kia6pt.fnt differ diff --git a/runTest.bat b/runTest.bat index 97074dc..2c71ea4 100644 --- a/runTest.bat +++ b/runTest.bat @@ -2,11 +2,11 @@ : Копирование файлов в папку _Test mkdir _Test -xcopy /h /y /c /r /s Source\ _Test\ +xcopy /h /y /c /r /s Build\ _Test\ : Задержка необходима для того, чтобы файлы успели скопироваться timeout /t 3 : Запуск клиента cd _Test -start TwistedInsurrection.exe +start "" TwistedInsurrection.exe diff --git a/zBuild.bat b/zBuild.bat new file mode 100644 index 0000000..56145bf --- /dev/null +++ b/zBuild.bat @@ -0,0 +1,17 @@ +@echo off +chcp 65001 > nul +set mix=ecache98 + +echo Delete build cache... +rmdir /q /s Build > nul 2> nul +mkdir Build +mkdir Build\MIX + +echo Copy files... +xcopy Source\* Build\* /e /y + +echo Compiling %mix%.mix... +Tools\ccmix.exe --create --lmd --game=ts --dir "Source\%mix%" --mix Build\MIX\%mix%.mix +rmdir /q /s Build\%mix% > nul 2> nul + +echo Done. Please, check Build folder.