package-homebrew is an atbin packager that builds homebrew packages. You can use it to create free homebrew packaging as an output from the AT toolchain.

Complete example

:tasks {

    ;; Build our Swift executable
    :build {
        :tool "atllbuild"
        :sources ["src/**.swift"]
        :name "foo"
        :output-type "executable"

    ;; Package for the atbin format
    :atbin {
      :tool "packageatbin"
      :name "foo"
      :atllbuild-task "build"
      :platforms ["all"]

    ;; Repackage atbin for homebrew
    :package-osx {
      :tool "package-homebrew.attool"

      ;;The name of an atbin to repackage
      :name "foo"

      ;;Ensure the atbin was built by the time we got here 
      :dependencies ["atbin"]

      ;; The location of the project on GitHub.
      ;; If specified, we predict the url from GitHub format.
      ;; Either this or a url must be specified.
      :github-project "AnarchyTools/MyGreatProject"

      ;; URL where atbin.tar.xz will be hosted
      :url ""

package-homebrew outputs a .tar.xz in bin. It also outputs an .rb formula for the package.

© 2016 Anarchy Tools and contributors.