Advertisement
PEMapModder

Compile PocketMine-Soft

Apr 9th, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. #!/bin/bash
  2. git clone https://github.com/PEMapModder/PocketMine-Soft.git PmSoft
  3. cd PmSoft
  4. git checkout merge-fix-19032015
  5. ./applyPatches.sh
  6. cd PocketMine-Soft-Core
  7. mkdir SourceHolder
  8. cp src SourceHolder/src -r
  9. # this is the path to your PHP extension
  10. 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
  11. cd ../..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement