Skip to content

Commit

Permalink
Optimize phar file
Browse files Browse the repository at this point in the history
  • Loading branch information
dshafik committed Dec 24, 2016
1 parent 7a2efcd commit af67da2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 33 deletions.
37 changes: 5 additions & 32 deletions box.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,18 @@
"alias": "akamai-open-edgegrid-auth.phar",
"algorithm": "SHA512",
"directories": [
"src"
"src",
"vendor/composer"
],
"files": [
"LICENSE",
"README.md",
"CHANGELOG.md",
"vendor/autoload.php"
],
"finder": [
{
"name": "*.php",
"exclude": [
"Tests",
"tests",
"fabpot",
"doctrine",
"phine",
"phpdocumentor",
"phploc",
"phpspec",
"sebastian",
"seld",
"squizlabs",
"tedivm",
"theseer",
"kherge",
"justinrainbow",
"phine",
"mikey179",
"phpunit",
"herrera-io/annotations",
"herrera-io/box",
"herrera-io/version"
],
"in": "vendor"
}
],
"compression": "BZ2",
"bootstrap": "build/phar/bootstrap.php",
"git-version": "package_version",
"output": "akamai-open-edgegrid-auth.phar",
"stub": "build/phar/stub.php",
"shebang": "#!/usr/bin/env php"
"stub": "build/phar/stub.php"
}
2 changes: 1 addition & 1 deletion tools/build-phar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ EOF;
file_put_contents('build/phar/stub.php', \$stub);" > build/phar/bootstrap.php

php -dphar.readonly=0 ./vendor/bin/box build
php -dphar.readonly=0 $HOME/.composer/vendor/bin/box build

mv akamai-open-edgegrid-auth.phar "akamai-open-edgegrid-auth${VERSION}.phar"

Expand Down

0 comments on commit af67da2

Please sign in to comment.