Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A simple batch script for installing Pocketmine in source form on Windows
@echo off
TITLE PocketMine-MP Source Installer
cd /d %~dp0
if exist %~dp0PocketMine-MP\ goto PMSTART
where git >nul 2>nul || (powershell -command "& { iwr -OutFile PortableGit.exe }" & start PortableGit.exe & pause)
if exist .\PortableGit\cmd\git.exe (
set GIT=.\PortableGit\cmd\git.exe
del PortableGit.exe
) else (
set GIT=git
%GIT% clone -b stable --recursive
rd /s /q PortableGit
cd PocketMine-MP
del start.cmd
del start.ps1
powershell -command "& { iwr -OutFile start.cmd }"
powershell -command "& { iwr -OutFile start.ps1 }"
powershell -command "& { iwr -OutFile }"
powershell -command "Expand-Archive -Path -DestinationPath ."
start /w vc_redist.x64.exe
powershell -command "& { iwr -OutFile composer-setup.php }"
.\bin\php\php.exe composer-setup.php --install-dir=bin
.\bin\php\php.exe .\bin\composer.phar install --no-interaction --ansi
del composer-setup.php
mkdir plugins
cd tests\plugins\PocketMine-DevTools
..\..\..\bin\php\php.exe -dphar.readonly=0 .\src\DevTools\ConsoleScript.php --make .\ --relative .\ --out ..\..\..\plugins\DevTools.phar
cd ..\..\..
echo Starting PocketMine-MP
cd %~dp0PocketMine-MP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.