diff --git a/bin/build-phar.sh b/bin/build-phar.sh new file mode 100755 index 000000000..1e05c796a --- /dev/null +++ b/bin/build-phar.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +composer global require humbug/box:dev-master +composer install --no-dev +[ -d build ] || mkdir build +box build + +# reinstall deps (to regenerate autoloader and bring back dev deps) +rm -Rf vendor/* +composer install diff --git a/box.json b/box.json index c9ecd0ede..070e8f527 100644 --- a/box.json +++ b/box.json @@ -1,6 +1,6 @@ { "main" : "./psalm", - "output" : "./psalm.phar", + "output" : "./build/psalm.phar", "directories" : [ "src", "assets", @@ -14,5 +14,7 @@ "Herrera\\Box\\Compactor\\Php" ], "compression" : "BZ2", - "chmod" : "0755" + "chmod" : "0755", + "shebang" : "#!/usr/bin/env php", + "stub" : true }