1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 05:17:47 +01:00

phar build tweaks

* added build script
* rebuilt stub to include shebang
* moved built phar to build dir
This commit is contained in:
Bruce Weirdan 2018-03-02 02:10:08 +02:00 committed by Matthew Brown
parent 32884774e4
commit c13fda4034
2 changed files with 13 additions and 2 deletions

9
bin/build-phar.sh Executable file
View File

@ -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

View File

@ -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
}