Scripts to help us to maintain the building process the same way for all our PHP-related projects that run with manticore-executor.
By default, bin/build creates a module directory with src/, vendor/, Composer metadata, and generated wrappers that launch src/main.php through manticore-executor.
Add --phar to collapse that generated module tree into build/share/modules/<package>/<package>.phar and rewrite generated wrappers to launch the PHAR instead:
./bin/build --name="Manticore Backup" --package="manticore-backup" --template=sh --pharUse --compat-src-main for modules that must still expose src/main.php outside the PHAR, e.g. bundled Buddy auto-discovery by searchd:
./bin/build --name="Manticore Buddy" --package="manticore-buddy" --phar --compat-src-mainThe PHAR entrypoint is src/main.php.