Last active
January 14, 2020 00:09
-
-
Save IceCruelStuff/621339e30c8fb2b0d4d806265f0bbed9 to your computer and use it in GitHub Desktop.
Steadfast5 Source Installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| :: | |
| :: ___ _____ ___ __ _ ___ ___ __ _ ___ _____ ____ | |
| :: / __|__ __|/ _ \/ _` | \| _|/ _` |/ __|__ __| | __| | |
| :: \__ \ | | | __/ | | | | || _| | | |\__ \ | | |__ \ | |
| :: |___/ |_| \___|\__,_|___/|_| \__,_/|___/ |_| |____/ | |
| :: | |
| :: This program is free software: you can redistribute it and/or modify | |
| :: it under the terms of the GNU Lesser General Public License as published by | |
| :: the Free Software Foundation, either version 3 of the License, or | |
| :: (at your option) any later version. | |
| :: | |
| :: @author Steadfast5 Team | |
| :: @link https://steadfast5.tk | |
| :: | |
| TITLE Steadfast5 server software for Minecraft: Bedrock Edition | |
| cd /d %~dp0 | |
| cd /d %~dp0 goto PMSTART | |
| where git >nul 2>nul || (powershell -command "& { iwr https://github.com/git-for-windows/git/releases/download/v2.20.1.windows.1/Git-2.20.1-64-bit.exe -OutFile Git-2.20.1-64-bit.exe }" & start Git-2.20.1-64-bit.exe & pause) | |
| git clone https://github.com/IceCruelStuff/Steadfast5.git --recursive | |
| cd Steadfast5 | |
| git clone https://github.com/IceCruelStuff/bin.git --recursive | |
| if exist bin\php\php.exe ( | |
| set PHPRC="" | |
| set PHP_BINARY=bin\php\php.exe | |
| ) else ( | |
| set PHP_BINARY=php | |
| ) | |
| if exist Steadfast5.phar ( | |
| set POCKETMINE_FILE=Steadfast5.phar | |
| ) else ( | |
| if exist PocketMine-MP.phar ( | |
| set POCKETMINE_FILE=PocketMine-MP.phar | |
| ) else ( | |
| if exist src\pocketmine\PocketMine.php ( | |
| set POCKETMINE_FILE=src\pocketmine\PocketMine.php | |
| ) else ( | |
| echo "Couldn't find a valid Steadfast5 installation" | |
| pause | |
| exit 1 | |
| ) | |
| ) | |
| ) | |
| REM if exist bin\php\php_wxwidgets.dll ( | |
| REM %PHP_BINARY% %POCKETMINE_FILE% --enable-gui %* | |
| REM ) else ( | |
| if exist bin\mintty.exe ( | |
| start "" bin\mintty.exe -o Columns=88 -o Rows=32 -o AllowBlinking=0 -o FontQuality=3 -o Font="DejaVu Sans Mono" -o FontHeight=10 -o CursorType=0 -o CursorBlinks=1 -h error -t "PocketMine-MP" -i bin/pocketmine.ico -w max %PHP_BINARY% %POCKETMINE_FILE% --enable-ansi %* | |
| ) else ( | |
| %PHP_BINARY% -c bin\php %POCKETMINE_FILE% %* | |
| ) | |
| REM ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment