An open API service indexing awesome lists of open source software.

https://github.com/bolt/bolt-distribution

Some simple scripts to package the Bolt distros
https://github.com/bolt/bolt-distribution

Last synced: 2 months ago
JSON representation

Some simple scripts to package the Bolt distros

Awesome Lists containing this project

README

          

bolt-distribution
=================

Some simple scripts to package the Bolt distribution files.

Custom Event Script
-------------------

You can add a file called `custom.sh` that defines two functions that will be
called just before the archive is made and again after it is complete.

The basic layout example of `custom.sh`:

```bash
#!/bin/sh

function custom_pre_archive {
echo "Pre archive function"
}

function custom_post_archive {
echo "Post archive function"
}
```

The following variables will be available:
* `VERSION` — The version string to use
* `$PACKAGE` — Base name of the package, i.e. `bolt-$VERSION`
* `$BUILD_DIR` — Root directory used for the build process
* `$COMPILE_DIR` — Directory that the Composer package build is done
* `$SHIPPING_DIR` — Directory the archive files are created from
* `$ARCHIVE_DIR` — Directory archive files are written to