Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (25 loc) · 1.3 KB

PACKAGING.md

File metadata and controls

30 lines (25 loc) · 1.3 KB

How to update Homebrew recipe

  1. Install current version with Homebrew if it wasn't installed
  2. brew edit crul
  • Edit url
  • Remove bottle section
  1. brew uninstall crul
  2. brew install crul
  • This will fail because the checksum doesn't match. The new one will be shown
  • Check it
  • Update it running brew edit crul again
  • Retry the install
  1. Optionally, create a bottle (see below)
  2. cd /usr/local/Homebrew/Library/Taps/porras/homebrew-tap
  3. Commit (message can be [crul] vX.Y.Z) and push
  • If login is prompted, cancel and add a mine remote with git remote add mine git@github.com:porras/homebrew-tap.git)
  • From now on the push command will be git push mine master

How to create a bottle

  1. Uninstall and reinstall with brew install crul --build-bottle
  2. brew bottle crul
  3. Upload the generated tar.gz to the release and copy its download URL
  4. Copy the generated snippet into brew edit crul and add a root_url line with the copied URL minus the filename
  5. Check it by uninstalling and installing again (no flags)

How to build and release Ubuntu package

  1. Run ./release.linux (requires Docker, and probably a fast internet connection 😁)
  2. Add the generated build/whatever.deb to the deb repository