Remove start script support for source-code installations (#2495)

This was suggested recently by @TheDeibo. We don't want users running source-code installations unless they are developers, and developers should know how to boot a source-code installation anyway.
This commit is contained in:
Dylan T 2018-11-04 23:31:57 +00:00 committed by GitHub
parent 7b24fbc8db
commit 8cc2a4ce5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 11 deletions

View File

@ -12,13 +12,9 @@ if exist bin\php\php.exe (
if exist PocketMine-MP.phar ( if exist PocketMine-MP.phar (
set POCKETMINE_FILE=PocketMine-MP.phar set POCKETMINE_FILE=PocketMine-MP.phar
) else ( ) else (
if exist src\pocketmine\PocketMine.php ( echo Couldn't find a valid PocketMine-MP installation
set POCKETMINE_FILE=src\pocketmine\PocketMine.php pause
) else ( exit 1
echo Couldn't find a valid PocketMine-MP installation
pause
exit 1
)
) )
if exist bin\mintty.exe ( if exist bin\mintty.exe (

View File

@ -18,8 +18,6 @@ if($php -ne ""){
if($file -eq ""){ if($file -eq ""){
if(Test-Path "PocketMine-MP.phar"){ if(Test-Path "PocketMine-MP.phar"){
$file = "PocketMine-MP.phar" $file = "PocketMine-MP.phar"
}elseif(Test-Path "src\pocketmine\PocketMine.php"){
$file = "src\pocketmine\PocketMine.php"
}else{ }else{
echo "Couldn't find a valid PocketMine-MP installation" echo "Couldn't find a valid PocketMine-MP installation"
pause pause

View File

@ -36,8 +36,6 @@ fi
if [ "$POCKETMINE_FILE" == "" ]; then if [ "$POCKETMINE_FILE" == "" ]; then
if [ -f ./PocketMine-MP.phar ]; then if [ -f ./PocketMine-MP.phar ]; then
POCKETMINE_FILE="./PocketMine-MP.phar" POCKETMINE_FILE="./PocketMine-MP.phar"
elif [ -f ./src/pocketmine/PocketMine.php ]; then
POCKETMINE_FILE="./src/pocketmine/PocketMine.php"
else else
echo "Couldn't find a valid PocketMine-MP installation" echo "Couldn't find a valid PocketMine-MP installation"
exit 1 exit 1