]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Автообновление SS14
authorMaxSMokeSkaarj <vnazarov@smokeofanarchy.ru>
Sun, 15 Dec 2024 04:53:16 +0000 (14:53 +1000)
committerMaxSMokeSkaarj <vnazarov@smokeofanarchy.ru>
Sun, 15 Dec 2024 04:53:16 +0000 (14:53 +1000)
build.sh

index 1eca2d39681d46df67cb4a6e28c64a7cb33a950c..2abb6f501f54d8516f1375282f1854afa2b88f9c 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -12,28 +12,47 @@ function updateRobustToolbox() {
        cd ..;
 };
 
+function updateCorvaxRepo() {
+       cd Corvax-SS14;
+       git pull origin master;
+       cd ..;
+};
+
+function updateMr0maksRepo() {
+       cd Mr0maks-SS14;
+       git pull origin master-ru;
+       cd ..;
+};
+
 function updateSS14() {
-       updateRobustToolbox
+       git add .;
+       git commit -m "Автообновление SS14";
+       updateRobustToolbox;
        git add .;
        git commit -m "Автообновление RobustToolbox";
        git pull origin main;
        git pull fetch master;
-       git commit -m "Автообновление SS14";
+       git commit -m "Автообновление с вендора SS14";
+       updateCorvaxRepo;
+       cp Corvax-SS14/Resources/Locale/ru-RU Resources/Locale -r;
+       cp Corvax-SS14/Resources/ServerInfo/Guidebook Resources/ServerInfo -r;
+       git add .;
+       git commit -m "Автообновление переводов";
        git push origin main;
-       git push --mirror ssh://git@github.com/MaxSMokeSkaarj/space-station-14
+       git push --mirror ssh://git@github.com/MaxSMokeSkaarj/space-station-14;
 };
 
 function buildServer() {
-    cd RobustToolbox
-       git fetch --depth 1
-    cd ..
-       dotnet restore
+       cd RobustToolbox;
+               git fetch --depth 1;
+       cd ..;
+       dotnet restore;
        dotnet build Content.Packaging --configuration Release --no-restore /m;
        dotnet run --project Content.Packaging server --platform win-x64 --platform linux-x64 --platform osx-x64 --platform linux-arm64;
-       dotnet run --project Content.Packaging client --no-wipe-release
+       dotnet run --project Content.Packaging client --no-wipe-release;
 
 };
 
-eval $1
-#updateSS14
-#buildServer
+eval $1;
+#updateSS14;
+#buildServer;