Skip to content

Latest commit

 

History

History
68 lines (61 loc) · 3.05 KB

README.md

File metadata and controls

68 lines (61 loc) · 3.05 KB

Erikw's Homebrew Tap

brew test-bot brew pr-pull

My own Homebrew tap featuring formulas for:

How do I install these formulae?

As one command brew install erikw/tap/<formula>, or brew tap erikw/tap followed by brew install <formula>.

Here are all formulas provided by this tap:

$ brew install erikw/tap/xdg-urlview
$ brew install erikw/tap/restic-automatic-backup-scheduler

Documentation

brew help, man brew or check Homebrew's documentation.

Development

  • Clone this git repo with the ssh protocol instead of https, by tapping. You should really clone the repo with brew-tap, as otherwise commands like brew-audit won't work.
    $ brew tap erikw/tap git@github.com:erikw/homebrew-tap.git
    • At a later point, return here with:
      cd "$(brew --repository erikw/homebrew-tap)"
  • Setup a GitHub personal access token
  • To create a new Formula:
    $ brew --tap erikw/homebrew-tap <url-to-source-files.tar.gz>
  • Build from source:
    $ brew install --verbose --debug --build-from-source restic-automatic-backup-scheduler
    $ brew reinstall --build-from-source restic-automatic-backup-scheduler
  • Test a formula for erros:
    $ brew audit --new-formula restic-automatic-backup-scheduler
    $ brew audit --strict --online restic-automatic-backup-scheduler
  • Run tests only:
    $ brew test restic-automatic-backup-scheduler
  • Update a version & build new bottles bottles:
    1. Create a PR in the GitHub repo
      • Only one file changed per PR: Autosquash can't split commits that modify multiple files.
      • For easy version upgrades:
      $ brew bump-formula-pr --version 7.3.0 restic-automatic-backup-scheduler
      $ brew bump-formula-pr --version 7.3.0 restic-automatic-backup-scheduler-check
    2. Wait for the PR builds test.yml to become green
    3. Apply the PR label pr-pull. This will trigger the second flow from publish.yml will run and create the bottle.