Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 2.34 KB

homebrew.md

File metadata and controls

40 lines (31 loc) · 2.34 KB

This task updates an existing Homebrew formula to point to the latest source archive for this package. It's enabled by calling pkg.addHomebrewTasks().

The Homebrew task treats the package's Homebrew repository as the source of truth for all configuration and metadata. This means that it's the user's responsibility to set up a reasonable installation formula (Dart Sass's formula is a good starting point). All this task does is update the formula's url and sha256 fields to the appropriate values for the latest version.

This task assumes that the package is published on GitHub (specifically to pkg.githubRepo), and that the task is running in a clone of that GitHub repo.

pkg-homebrew-update

Uses configuration: pkg.version, pkg.humanName, pkg.botName, pkg.botEmail, pkg.githubRepo, pkg.githubUser, pkg.githubPassword, pkg.homebrewRepo, pkg.homebrewFormula, pkg.homebrewTag, pkg.homebrewCreateVersionedFormula

Checks out pkg.homebrewRepo and pushes a commit updating pkg.homebrewFormula's url and sha256 fields to point to the appropriate values for pkg.version.