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:
parent
32884774e4
commit
c13fda4034
9
bin/build-phar.sh
Executable file
9
bin/build-phar.sh
Executable 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
|
6
box.json
6
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user