-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add before-script and after-script hooks #17
Comments
I'm not sure to understand what you try to do 😕 |
I want to provide a command line command like I could use a script that gets that information and builds the phar afterwards, but it would be nice if there was support directly in here, which would avoid the need for an extra script. |
My current proposal would be something like
in the |
Something similar to Composer event script, why not. Another idea is to create a new constant in the phar stub (bootstrap) code. $this->phar->setStub(
'#!/usr/bin/env php' . PHP_EOL .
'<?php Phar::mapPhar(); ' .
(null === $constant?'':'define(\'PHAR_VERSION\', \''.addslashes($constant).'\');') .
'include "phar://' . $this->alias . '/' . $this->stubFile .
'"; __HALT_COMPILER(); ?>'
); And in the console call: $ phar-builder package --version=`git describe --tags` But your proposal allow to have event based addition action/control which can be lot more flexible |
Somehow, |
And it doesn't respect the |
Also |
It's the second times! I really need to found a way to detect this! (Correct in 97bfa5f by the way) |
I think the warning is only printed in PHP 7? |
Nope, it's my PHP(s) configuration: the |
Did you have a look at the output dir? |
Yep, normally it's corrected with the commit e5bb1ec |
|
And another thing afterwards:
|
After that, it fails with
|
Are you sure to use the right branch for your test? Those two dependencies are declared in the branch |
That might be the case because I used |
Bug in Composer is gone now. Issue with |
#21 fixes this. |
Would be nice if it could run
git describe --tags
optionally and define a version constant likePHAR_BUILDER_GIT_VERSION
. It would remove the need to always change a file before tagging a new release.Might as well be done by using a script to release new versions.
The text was updated successfully, but these errors were encountered: