brew tap alan-turing-institute/hut23
brew install alan-turing-institute/hut23/meet
This package provides two executables: meet
and meet-rooms
.
The former is used to find a meeting time for a group of people (and associated meeting rooms), whereas the latter just shows room availabilility.
You can use the -h
flag to get help on how to use each of these executables and view the complete options, but basic usage looks something like:
-
meet aturing jdoe -s 2024-12-25 -d 30
Find a time for
[email protected]
and[email protected]
to meet on Christmas Day for half an hour. -
meet-rooms -s 2024-12-25
List meeting room availability on Christmas Day.
Install ghcup
, then use it to install GHC 9.4 and Cabal 3.8.
(Other GHC/Cabal version combinations that are known to work are 9.6/3.8 and 9.8/3.10.
You can also check the version combinations we test in GitHub Actions.)
Then run:
git clone [email protected]:alan-turing-institute/meet.git
cd meet
cabal update
cabal build
If it builds successfully, you can then run e.g.
cabal run meet -- aturing jdoe -s 2024-12-25 -d 30
or
cabal run meet-rooms -- -s 2024-12-25
- Increment version number in
meet.cabal
. Commit to the main branch. (There isn't a hard and fast rule for whether to bump the major/minor/patch versions, use your judgment as to whether something is breaking.) - Run
git tag -a v0.x.y.z
thengit push --tags
- Get the full commit SHA corresponding to the tag. Then edit line 4 of the
meet.rb
in thehomebrew-hut23
repository to include both the new version and the SHA: https://github.com/alan-turing-institute/homebrew-hut23/blob/main/meet.rb - Build the bottle with
brew update; brew uninstall meet; brew install meet --build-bottle; brew bottle meet --no-rebuild
- Edit the name of the bottle file, replace
meet--0.x.y.z
withmeet-0.x.y.z
(remove the extra hyphen) - Create a new GitHub release on
meet
for the new version - Upload the renamed bottle file as a binary associated with the release
- Inside the
bottle do
block of themeet.rb
file, replace thesha256 cellar
... lines with what Homebrew output. Update the version number in theroot_url...
line. - You can duplicate the
sha256 cellar
line and replacearm64_ventura
witharm64_monterey
so that people with macOS Monterey can also use it (the binary will work for them). If you do this, you will need to copy the bottle file, rename it to...monterey...
and upload it to the release as well. - Test that it works with
brew update; brew uninstall meet; brew install meet
. (Usingbrew reinstall meet
for some reason makes Homebrew attempt to reinstall from source, possibly because the existing installation is from source.)