Changes needed for Windows setup

This commit is contained in:
Marwolf
2018-07-19 10:13:21 -04:00
parent 8a3e6e290c
commit 2561e311bb
6 changed files with 72 additions and 58 deletions

View File

@@ -1,16 +0,0 @@
@echo off
echo:
echo Cloning the game repository.
make clone-windows-game
echo:
echo:
echo Cloning the website repository.
echo:
make clone-windows-website
echo:
echo:
echo Cloning the wiki repository.
echo:
make clone-windows-wiki
echo:

View File

@@ -1,12 +0,0 @@
@echo off
echo:
echo Cloning the game repository.
echo:
make clone-windows-game
echo:
echo:
echo Cloning the website repository.
echo:
make clone-windows-website
echo:

View File

@@ -1,7 +0,0 @@
@echo off
echo:
echo Cloning the game repository.
echo:
make clone-windows-game
echo:

View File

@@ -1,17 +0,0 @@
@echo off
echo:
echo Attempting to import (or overwrite) the game database.
echo:
make import-windows-game
echo:
echo:
echo Attempting to import (or overwrite) the website database.
echo:
make import-windows-website
echo:
echo:
echo Attempting to import (or overwrite) the wiki database.
echo:
make import-windows-wiki
echo:

View File

@@ -45,7 +45,7 @@ pull-website-windows:
@cd Website && git reset HEAD --hard && git pull
pull-wiki-windows:
@cd Website/Wiki git reset HEAD --hard && && git pull
@cd Website/Wiki git reset HEAD --hard && git pull
logs:
@docker-compose logs -f

View File

@@ -189,6 +189,8 @@ echo:
make start
echo:
echo:
:edition
echo:
echo Open RSC Installer
echo An easy to run RSC private server environment using Docker magic.
@@ -198,8 +200,35 @@ echo 1 - Single player RSC game + basic database editing (using PHPMyAdmin)
echo 2 - Game + Website + PHPMyAdmin
echo 3 - Game + Website + PHPMyAdmin + RSC Preservation Wiki
echo:
SET /P choice=Which of the above do you want? Type 1, 2, or 3, and press enter."
SET /P edition=Which of the above do you want? Type 1, 2, or 3, and press enter."
echo:
IF /i "%edition%"=="1" goto game
IF /i "%edition%"=="2" goto gameweb
IF /i "%edition%"=="3" goto gamewebwiki
echo Error! %edition% is not a valid option. Press enter to try again."
echo:
SET /P edition=""
goto edition
:game
echo:
echo Downloading a copy of the Game repository
echo:
make clone-windows-game
echo:
echo:
echo Importing the game databases.
echo:
make pull-game-windows
echo:
make import-windows-game
echo:
echo:
goto final
:gameweb
echo:
echo Downloading a copy of the Website repository
echo:
@@ -211,10 +240,7 @@ echo:
make clone-windows-game
echo:
echo:
echo Downloading a copy of the Wiki repository
echo:
make clone-windows-wiki
echo:
make pull-game-windows
echo:
echo Importing the game databases.
echo:
@@ -223,6 +249,43 @@ echo:
echo:
echo Importing the website database.
echo:
make pull-website-windows
echo:
make import-windows-website
echo:
echo:
goto final
:gamewebwiki
echo:
echo Downloading a copy of the Website repository
echo:
make clone-windows-website
echo:
echo:
echo Downloading a copy of the Game repository
echo:
make clone-windows-game
echo:
echo:
make pull-wiki-windows
echo:
echo Downloading a copy of the Wiki repository
echo:
make clone-windows-wiki
echo:
echo:
make pull-game-windows
echo:
echo Importing the game databases.
echo:
make import-windows-game
echo:
echo:
echo Importing the website database.
echo:
make pull-website-windows
echo:
make import-windows-website
echo:
echo:
@@ -235,6 +298,9 @@ echo Importing the wiki database.
echo:
make import-windows-wiki
echo:
goto final
:final
echo:
echo Extracting client cache
echo: