Skip to content

Instantly share code, notes, and snippets.

@minecrafter
Created September 25, 2016 17:58
Show Gist options
  • Save minecrafter/93ba26b49b55ce2f14971f59d1a7082b to your computer and use it in GitHub Desktop.
Save minecrafter/93ba26b49b55ce2f14971f59d1a7082b to your computer and use it in GitHub Desktop.
#!/bin/bash
# Clean up the existing phar
rm -f *.phar
# Check if phar.readonly is Off
if [ `php -r 'print ini_get("phar.readonly") ? "false" : "true";'` == false ]; then
echo "PHAR creation is not enabled in your php.ini. Please set phar.readonly = Off and try again."
exit 1
fi
phar pack -f MyPocketMinePlugin.phar -x "(.git|.idea)" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment