Script cleanup, removal of ant/make/wget/7z binaries

This commit is contained in:
Marwolf
2018-07-17 22:09:14 -04:00
parent c1960348cc
commit 6a9256c7ad
111 changed files with 56 additions and 21576 deletions

View File

@@ -10,6 +10,16 @@ echo Open RSC Installer:
echo:
echo An easy to run RSC private server environment using Docker magic.
echo:
echo Installing the required Chocolatey base system.
echo:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
echo:
echo:
echo Installing basic software needed to run the rest of this script.
echo:
choco install -y 7zip.install make python pip
echo:
echo:
echo Before continuing, Open RSC needs to know if you have Java JDK, Docker, and Git installed.
echo This installer can install one or both for you if needed.
echo:
@@ -30,16 +40,6 @@ Setup_Windows.cmd
:doinstall
echo:
echo Installing Chocolatey base system.
echo:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
echo:
echo:
echo Installing basic software needed to run.
echo:
choco install -y 7zip.install
echo:
echo:
echo Do you have Java JDK installed already?"
echo:
echo Choices:
@@ -87,7 +87,7 @@ goto askdocker
echo:
echo Installing Docker.
echo:
choco install -y docker docker-compose
choco install -y virtualbox docker docker-machine docker-compose
echo:
echo:
echo Don't forget to make your C: drive shared with containers in the Docker settings!
@@ -174,12 +174,12 @@ echo:
echo:
echo Attempting to stop any running Docker containers.
echo:
Windows\make stop
make stop
echo:
echo:
echo Starting Docker containers and downloading what is needed. This may take a while the first time.
echo:
Windows\make start
make start
echo:
echo:
echo:
@@ -196,27 +196,43 @@ echo:
echo:
echo Downloading a copy of the Website repository
echo:
Windows\make clone-windows-website
make clone-windows-website
echo:
echo:
echo Downloading a copy of the Game repository
echo:
Windows\make clone-windows-game
make clone-windows-game
echo:
echo:
echo Downloading a copy of the Wiki repository
echo:
make clone-windows-wiki
echo:
echo:
echo Importing the game databases.
echo:
Windows\make import-windows-game
make import-windows-game
echo:
echo:
echo Importing the website database.
echo:
Windows\make import-windows-website
make import-windows-website
echo:
echo:
echo Extracting Wiki database
echo:
7z x "Website/Wiki/openrsc_wiki.sql.zip" -o"Website/Wiki"
echo:
echo:
echo Importing the wiki database.
echo:
make import-windows-wiki
echo:
echo:
echo Extracting client cache
echo:
md "%HOMEPATH%/OpenRSC"
"Windows/7z.exe" x "Game/client/cache.zip" -o"%HOMEPATH%/OpenRSC" -r
7z x "Game/client/cache.zip" -o"%HOMEPATH%/OpenRSC" -r
echo:
echo:
echo First time setup is now complete. Go ahead and open "Start Game.cmd" now.