PkgDeb

PkgDeb is a .deb file packager for Mix Release.

This is currently just a fork of distillery_packager for Mix Release so the code is quite messy but works.

In a future release the whole codebase will be revamped and slimmed down.

Installation

If available in Hex, the package can be installed by adding pkg_deb to your list of dependencies in mix.exs:

def deps do
  [
    {:pkg_deb, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/pkg_deb.

Usage

Inside of your mix.exs file add:

  defp deb_config() do
    [
      vendor: "Your Name",
      maintainers: ["Your Name <your@email.com>"],
      homepage: "https://yourdomain.com",
      base_path: "/opt",
      external_dependencies: [],
      owner: [user: "youruser", group: "youruser"],
      description: "yourdescription"
    ]
  end

And to the steps inside of releases add:

steps: [:assemble, &PkgDeb.create_deb(&1, deb_config())],

Thanks

Thanks to distillery_packager for their package that this is based of.