Skip to content

Commit

Permalink
Переформатирование способа сборки проекта
Browse files Browse the repository at this point in the history
  • Loading branch information
MahBoiDeveloper committed Mar 23, 2024
1 parent 1a92e58 commit 4c19080
Show file tree
Hide file tree
Showing 15 changed files with 51 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -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/**
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# В папке должна содержаться актуальная версия мода, чтобы на него можно было накатить изменения для тестирования
_Test
Build
Binary file removed Source/MIX/ecache98.mix
Binary file not shown.
Binary file added Source/ecache98/12metfnt.fnt
Binary file not shown.
Binary file added Source/ecache98/6point.fnt
Binary file not shown.
Binary file added Source/ecache98/8point.fnt
Binary file not shown.
Binary file added Source/ecache98/cache.mix
Binary file not shown.
Binary file added Source/ecache98/dlgsysa.pcx
Binary file not shown.
Binary file added Source/ecache98/dlgsysi.pcx
Binary file not shown.
Binary file added Source/ecache98/editfnt.fnt
Binary file not shown.
Binary file added Source/ecache98/fullfnt3.shp
Binary file not shown.
Binary file added Source/ecache98/grad6fnt.fnt
Binary file not shown.
Binary file added Source/ecache98/kia6pt.fnt
Binary file not shown.
4 changes: 2 additions & 2 deletions runTest.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 17 additions & 0 deletions zBuild.bat
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 4c19080

Please sign in to comment.