Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- git clone https://github.com/PEMapModder/PocketMine-Soft.git PmSoft
- cd PmSoft
- git checkout merge-fix-19032015
- ./applyPatches.sh
- cd PocketMine-Soft-Core
- mkdir SourceHolder
- cp src SourceHolder/src -r
- # this is the path to your PHP extension
- php -r '$phar = new Phar("../../PmSoft.phar"); $phar->setMetadata(["name" => "PocketMine-Soft", "creationDate" => time()]); $phar->setStub("define(\"pocketmine\\\\PATH\", \"phar://\". __FILE__ .\"/\"); require_once(\"phar://\". __FILE__ .\"/src/pocketmine/PocketMine.php\"); __HALT_COMPILER();"); $phar->setSignatureAlgorithm(Phar::SHA1); $phar->startBuffering(); $phar->buildFromDirectory("SourceHolder"); $phar->stopBuffering();' -dphar.readonly=0
- cd ../..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement