machbarmacher / gdpr-dump

A drop-in replacement for mysqldump that optionally sanitizes DB fields for better GDPR conformity.
65 stars 34 forks source link

Generate phar #17

Open bomoko opened 6 years ago

bomoko commented 6 years ago

It seems as though this would be useful to distribute as a single .phar. Thoughts?

amenk commented 5 years ago

was looking for that as well, is anybody working on this?

bomoko commented 5 years ago

hi @amenk - nobody is working on this right now - I'm having some discussions with the loose "team" of people working on this to figure out the direction of the project.

If it's something that people want (and the fact that you're looking for it suggests it is ...) then we can prioritize it (first, though, I need to test and accept these open PRs ...)

amenk commented 5 years ago

This works: composer install

Next:

phive install humbug/box --force-accept-unsigned

Create a box.json

{
  "files": [
    "_bootstrap.php"
  ]
}

Run

tools/box compile

Here is the result:

mysqldump.phar.zip

Would be great if someone can test it a bit.

Next step would be to automate that.

The phar could be uploaded to GitHub releases via API. I have experience to do this with Robo .. would this be a way to go or better create a bash script for releasing?

amenk commented 5 years ago

Also we should allow the phar to be distributed via phive .. this involves singing it via PGP

amenk commented 4 years ago

Anybody want's to integrate that in the build process and sign the phar?