From af67da2d65f8a267f675bfbd7e01f54d78ee0931 Mon Sep 17 00:00:00 2001 From: Davey Shafik Date: Sat, 24 Dec 2016 16:27:21 -0500 Subject: [PATCH] Optimize phar file --- box.json.dist | 37 +++++-------------------------------- tools/build-phar.sh | 2 +- 2 files changed, 6 insertions(+), 33 deletions(-) diff --git a/box.json.dist b/box.json.dist index bb9ede1..87242f3 100644 --- a/box.json.dist +++ b/box.json.dist @@ -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" } diff --git a/tools/build-phar.sh b/tools/build-phar.sh index c3e9c11..992171e 100755 --- a/tools/build-phar.sh +++ b/tools/build-phar.sh @@ -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"