1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Convert src to .phar

Discussion in 'General discussion' started by Harviy11, Feb 4, 2017.

Thread Status:
Not open for further replies.
  1. Harviy11

    Harviy11 Baby Zombie

    Messages:
    100
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
  3. Harviy11

    Harviy11 Baby Zombie

    Messages:
    100
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    /makeserver
     
  5. Harviy11

    Harviy11 Baby Zombie

    Messages:
    100
    And where i must put src?
     
  6. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    To run pocketmine from source just put the src folder in your server's root dir. But remember to delete the current phar and to clone the src recursively.
     
  7. Harviy11

    Harviy11 Baby Zombie

    Messages:
    100
    If i remove current phar i cant do /makeserver because server dont run
     
  8. ZakousseMC

    ZakousseMC Spider Jockey

    Messages:
    46
    GitHub:
    ZakousseMC
    And this is why, as HimbeersaftLP said it just before put the src folder in your server's root dir. And delete your .phar (the one you already have)
     
    jasonwynn10 and HimbeersaftLP like this.
  9. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    :facepalm: I said remove the current phar AND put the cloned src in the server folder, so pocketmine runs from source
     
  10. Harviy11

    Harviy11 Baby Zombie

    Messages:
    100
    i dont understand guys :(
    can anyone make it .phar for me?:D
     
  11. Harviy11

    Harviy11 Baby Zombie

    Messages:
    100
    pocketmine dont run from source
     
  12. Jack Noordhuis

    Jack Noordhuis Zombie Pigman Poggit Reviewer

    Messages:
    618
    GitHub:
    JackNoordhuis
    Yes it can, check your facts before spreading incorrect information please. If you have all the required folders/sub-modules (PocketMine-MP, SPL, RakLib, language files) in their respective folders then you can start the server from the source files.
     
    jasonwynn10 likes this.
  13. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    ...although this is discouraged and should only be done in a development environment.

    You don't need to run PocketMine-MP at all to create a phar, you only need to be able to run PHP from the command-line. DevTools can be run as a standalone with which you can create phars, or you can even just use the ConsoleScript.

    Steps to build from source (Assuming you have DevTools.phar already in the server folder):
    Code:
    $ git clone --recursive https://github.com/pmmp/PocketMine-MP.git -b mcpe-1.0.3.0
    $ cd PocketMine-MP
    $ php DevTools.phar --make src --relative ./ --entry src/pocketmine/PocketMine.php --out PocketMine-MP.phar
    
    (making sure to replace `php` with the path to your PHP binary)
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.