addHomebrewTasks function

void addHomebrewTasks()

Enables tasks for uploading the package to Homebrew.

Implementation

void addHomebrewTasks() {
  if (_addedHomebrewTasks) return;
  _addedHomebrewTasks = true;

  freezeSharedVariables();
  homebrewRepo.freeze();
  homebrewFormula.freeze();
  homebrewCreateVersionedFormula.freeze();
  homebrewTag.freeze();

  addTask(GrinderTask('pkg-homebrew-update',
      taskFunction: () => _update(),
      description: 'Update the Homebrew formula.'));
}