Search code examples
herokubuildpackfantom

How to unzip files in a Heroku Buildpack


I'm writing a custom Heroku buildpack (heroku-buildpack-fantom) for Fantom, and as part of the compile script I've downloaded a .zip file (from a language vendor), but how do I unzip it?

unzip is not a recognised command.

gunzip exists but I can't use it to unzip .zip files.

What am I missing?


Solution

  • Even though (by default) Linux does not come pre-installed with unzip, the Heroku dyno does have a jar command. So the following works okay:

      > jar xf wotever.zip