Skip to content

Commit 70b5e11

Browse files
committed
Roave#159 Install box using composer to always get the latest version
set -x to abort script if any command fails
1 parent 3985795 commit 70b5e11

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

build-phar.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
#!/usr/bin/env bash
22

3-
if [ ! -f box.phar ]; then
4-
wget https://github.com/humbug/box/releases/download/3.0.0-beta.4/box.phar -O box.phar
5-
fi
3+
set -e
4+
5+
mkdir -p tmp
6+
7+
# Install humbug/box
8+
composer --working-dir=tmp require humbug/box --no-interaction --no-progress --no-suggest
69

710
# Remove dev dependencies for package distribution
811
composer install --no-dev
912

10-
php box.phar compile
13+
tmp/vendor/bin/box compile
1114

1215
composer install
16+
17+
rm -rf tmp

0 commit comments

Comments
 (0)