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

Latest commit

 

History

History
30 lines (25 loc) · 1.29 KB

PACKAGING.md

File metadata and controls

30 lines (25 loc) · 1.29 KB

How to update Homebrew recipe

  1. Install current version with Homebrew if it wasn't installed
  2. brew edit tlcr
  • Edit url
  • Remove bottle section
  1. brew uninstall tlcr
  2. brew install tlcr
  • This will fail because the checksum doesn't match. The new one will be shown
  • Check it
  • Update it running brew edit tlcr 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 [tlcr] vX.Y.Z) and push
  • If login is prompted, cancel and add a mine remote with git remote add mine [email protected]: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 tlcr --build-bottle
  2. brew bottle tlcr
  3. Upload the generated tar.gz to the release and copy its download URL
  4. Copy the generated snippet into brew edit tlcr 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. Upload the generated build/whatever.deb to the release