From 79342b7b7ba8e1ff194cb511ed080362aa1bd7fb Mon Sep 17 00:00:00 2001 From: Christian Albrecht Date: Fri, 24 Jan 2020 13:22:21 +0100 Subject: [PATCH] Fix phar build #69 (#71) * Fix phar build #69 templates folder was missing in the resulting pharchive. cleaned the finder paths to the necessary minimum. * Set version to 2.3.1 --- box.json | 33 +++++++++++++++++++++++++++++++++ composer.json | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 box.json diff --git a/box.json b/box.json new file mode 100644 index 0000000..35b7be1 --- /dev/null +++ b/box.json @@ -0,0 +1,33 @@ +{ + "alias": "phpcb.phar", + "compactors": [ + "KevinGH\\Box\\Compactor\\Json", + "KevinGH\\Box\\Compactor\\Php" + ], + "directories": ["src", "templates"], + "files": [ + "LICENSE", + "vendor/autoload.php" + ], + "finder": [ + { + "name": "*.php", + "path": [ + "monolog/monolog", + "phpunit/php-file-iterator", + "psr/log", + "symfony/console", + "symfony/service-contracts" + ], + "notPath": [ + "Tests", + "test", + "tests" + ], + "in": "vendor" + } + ], + "git-commit": "git-commit", + "git-version": "git-version", + "output": "phpcb-2.3.1.phar" +} diff --git a/composer.json b/composer.json index 9b36000..69b10ce 100644 --- a/composer.json +++ b/composer.json @@ -57,6 +57,6 @@ ], "clean": "rm -rf build/logs/* build/code-browser", "browser": "bin/phpcb -l build/logs -o build/code-browser -s src", - "phar": "php -d phar.readonly=0 vendor/bin/box build" + "phar": "php vendor/bin/box compile" } }