Skip to content

Commit 155e238

Browse files
committed
Upgrade Box
1 parent 1308807 commit 155e238

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CHANGELOG
77
* The model class names are no longer constructed by concatenating strings.
88
This change was made to improve support for tools like PHP-Scoper.
99
Reported by Andrew Mead. GitHub #194.
10+
* Box 4.0.1 is now used to generate the `geoip2.phar` file.
1011

1112
2.12.2 (2021-11-30)
1213
-------------------

dev-bin/release.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,15 @@ php composer.phar update --no-dev
4444

4545
perl -pi -e "s/(?<=const VERSION = ').+?(?=';)/$tag/g" src/WebService/Client.php
4646

47-
if [ ! -f box.phar ]; then
48-
wget -O box.phar "https://github.com/box-project/box/releases/download/3.13.0/box.phar"
47+
48+
box_phar_hash='d862951a7acca5641bdd3d3e289e675f3c46810c7994aebfe0c9188a80f6cac1 box.phar'
49+
50+
if ! echo "$box_phar_hash" | sha256sum -c; then
51+
wget -O box.phar "https://github.com/box-project/box/releases/download/4.0.1/box.phar"
4952
fi
5053

54+
echo "$box_phar_hash" | sha256sum -c
55+
5156
php box.phar compile
5257

5358
phar_test=$(./dev-bin/phar-test.php)

0 commit comments

Comments
 (0)