View Source ScratchRelease (ScratchRelease v0.1.0)

Documentation for ScratchRelease.

Link to this section Summary

Functions

This step should be put after /move_release_files/1 in the release steps.

This step should be put after :assemble in the release steps.

This step can be placed anywhere in the release steps, but ideally should be placed at the end.

Link to this section Functions

@spec assemble(Mix.Release.t()) :: Mix.Release.t()

This step should be put after /move_release_files/1 in the release steps.

It copies all required binaries and dynamic libraries to the root of the release.

example: [ include_executables_for: [:unix], steps: [:assemble, &ScratchRelease.move_release_files/1, &ScratchRelease.assemble/1] ]

Link to this function

move_release_files(release)

View Source
@spec move_release_files(Mix.Release.t()) :: Mix.Release.t()

This step should be put after :assemble in the release steps.

It moves all the release files into a new directory with the name of the release.

@spec release(Mix.Release.t()) :: Mix.Release.t()

This step can be placed anywhere in the release steps, but ideally should be placed at the end.

It appends &move_release_files/1 and &assemble/1 to the release steps.

example: [ include_executables_for: [:unix], steps: [:assemble, &ScratchRelease.release/1] ]