Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

homebrew-tap
Clone

Read only, no credentials:

https://rodent.software/homebrew-tap.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/homebrew-tap.git

Homebrew tap for Rodent Software.

update readme

c55615f1019183957ae1aa5ace67345caace98e6 · Keenan Nemetz · 3d ago · parent c7d7b6e4

README.md +96−61

@@ -1,86 +1,121 @@
1 # Rodent Software Homebrew tap
1 # Rodent Software Homebrew Tap
2 2
3 A [Homebrew](https://brew.sh) tap for Rodent Software projects. Each project
4 ships one formula here, so a single tap installs and upgrades every Rodent
5 Software tool.
3 This repository provides [Homebrew](https://brew.sh) formulae for Rodent
4 Software projects. Formulae install the same prebuilt binaries published with
5 each project release and verify them against pinned SHA-256 checksums.
6 6
7 | Project | Formula | Description |
8 |---|---|---|
9 | [Vole](https://rodent.software/vole) | `vole` | A forge that lives in your Git repository |
7 ## Available formulae
10 8
11 ## Install
9 | Formula | Project | Description |
10 | --- | --- | --- |
11 | `vole` | [Vole](https://rodent.software/vole) | A forge that lives in your Git repository |
12 12
13 The tap is hosted on the Rodent Software forge, not GitHub, so Homebrew has to
14 be told the clone URL rather than guessing GitHub. The `rodent-software/homebrew-tap`
15 name is just the label the tap installs under (the org plus "homebrew-tap", the
16 same convention other multi-project taps use); the URL is where it is actually
17 cloned from:
13 Vole supports macOS and Linux on ARM64 and Intel (x86_64) systems.
14
15 ## Installation
16
17 Install [Homebrew](https://brew.sh), then add the tap. The explicit Git URL is
18 required because this repository is hosted on the Rodent Software forge rather
19 than GitHub:
18 20
19 21 ```sh
20 22 brew tap rodent-software/homebrew-tap https://rodent.software/homebrew-tap.git
21 brew install vole
22 brew services start vole
23 23 ```
24 24
25 After tapping once, install any other project with `brew install <project>`
26 (`rack` when it ships a formula, for example). Each formula installs the
27 standalone macOS binary its project's release already builds, pinned against
28 that release's `SHA256SUMS`.
25 You only need to add the tap once. Install Vole with its fully qualified
26 formula name:
29 27
30 Serving the tap from your own instance? Replace the URL with that instance's
31 public clone URL (`https://<host>/homebrew-tap.git`).
28 ```sh
29 brew install rodent-software/homebrew-tap/vole
30 ```
32 31
33 `brew upgrade <project>` replaces the binary when the tap is bumped.
32 For other formulae, replace `vole` with a name from the table above. To use a
33 mirror or a self-hosted copy of the tap, replace the clone URL in the `brew
34 tap` command with its public Git URL.
34 35
35 ## Project notes
36 ## Upgrading
36 37
37 ### Vole
38 Update the tap and upgrade an installed formula with:
38 39
39 The `vole` binary is the server, the CLI, and the CI runner in one, so
40 `brew services start vole` runs `vole serve` as a LaunchAgent. A LaunchAgent
41 cannot bind a privileged port, so the forge listens on the default unprivileged
42 SSH (`127.0.0.1:2222`) and HTTP (`127.0.0.1:8080`) addresses. Put the
43 [system sshd in front of Vole](https://rodent.software/vole/deploy/#put-sshd-in-front-of-vole)
44 for a portless clone URL, or use
45 [socket activation](https://rodent.software/vole/deploy/macos/#serve-https-with-socket-activation)
46 for HTTPS on 443. A LaunchAgent stops when the user logs out; a machine-wide
47 LaunchDaemon is a separate install described in the
48 [macOS deployment guide](https://rodent.software/vole/deploy/macos/#run-as-a-launchdaemon). The
49 socket-activation plist ships at `share/launchd/software.rodent.vole.plist`.
40 ```sh
41 brew update
42 brew upgrade vole
43 ```
50 44
51 ## Bumping a release
45 ## Running Vole
52 46
53 Each `Formula/<project>.rb` pins one release at a time: its `version` and the two
54 `sha256` values must agree with that release's `SHA256SUMS`. To move a project to
55 a new release:
47 The `vole` executable provides the server, command-line client, and CI runner.
48 To run the forge as a background service:
56 49
57 50 ```sh
58 scripts/autobump.sh vole # the newest release
59 scripts/autobump.sh vole v0.2.0 # a specific tag
60 git diff # review the version and checksums
61 git commit -am "Bump vole to v0.2.0" && git push
51 brew services start vole
62 52 ```
63 53
64 `autobump.sh` takes the project name, reads that release's `SHA256SUMS`,
65 downloads each darwin asset, and refuses to write a checksum that does not match
66 what it downloaded. A release whose `SHA256SUMS` disagrees with its artifacts
67 fails the bump, so it can never fail an install. The script only edits the
68 formula; committing and pushing are yours, so a bot never writes to the tap on
69 its own.
54 The service runs `vole serve` and writes its output to Homebrew's Vole log.
55 Stop it with:
70 56
71 ## Adding a project
57 ```sh
58 brew services stop vole
59 ```
60
61 On macOS, `brew services` runs Vole as a per-user LaunchAgent. It listens on
62 `127.0.0.1:2222` for SSH and `127.0.0.1:8080` for HTTP, and stops when the user
63 logs out. For public SSH clone URLs, HTTPS with socket activation, and a
64 machine-wide LaunchDaemon, see the
65 [Vole macOS deployment guide](https://rodent.software/vole/deploy/macos/).
66 The socket-activation property list is included in this repository at
67 [`share/launchd/software.rodent.vole.plist`](share/launchd/software.rodent.vole.plist).
68
69 ## Uninstalling
70
71 Stop any running services before uninstalling their formulae:
72 72
73 - Drop its formula at `Formula/<project>.rb`.
74 - Make sure its release publishes `<project>-darwin-arm64` and
75 `<project>-darwin-amd64` artifacts plus a `SHA256SUMS` under
76 `releases/<tag>/artifacts/`, and that its homepage is
77 `https://rodent.software/<project>`.
78 - Add a row to the table above. `scripts/autobump.sh <project>` then keeps it
79 current.
73 ```sh
74 brew services stop vole
75 brew uninstall vole
76 ```
80 77
81 ## Repository layout
78 After removing all formulae installed from this repository, you can remove the
79 tap itself:
82 80
83 ```text
84 Formula/<project>.rb one formula per project
85 scripts/autobump.sh refresh version and checksums from SHA256SUMS
81 ```sh
82 brew untap rodent-software/homebrew-tap
86 83 ```
84
85 ## Maintaining the tap
86
87 Each `Formula/<project>.rb` file pins a release version and the checksums of
88 its release artifacts. To update a formula, run the bump script from the
89 repository root.
90
91 To use the latest release listed on the project's homepage:
92
93 ```sh
94 scripts/autobump.sh vole
95 ```
96
97 To select a release explicitly, pass its tag as the second argument:
98
99 ```sh
100 scripts/autobump.sh vole v0.2.0
101 ```
102
103 The script downloads every artifact referenced by the formula, verifies each
104 one against the release's `SHA256SUMS`, and updates the formula only when all
105 checksums match. Review the result, then commit and push the change:
106
107 ```sh
108 git diff Formula/vole.rb
109 git commit -am "Update vole formula"
110 git push
111 ```
112
113 To add another project:
114
115 1. Add its formula as `Formula/<project>.rb`.
116 2. Publish every artifact referenced by the formula and a `SHA256SUMS` file
117 under `https://rodent.software/<project>/releases/<tag>/artifacts/`.
118 3. Add the formula to the [Available formulae](#available-formulae) table.
119
120 The bump script updates the formula only; committing and publishing changes
121 remain explicit maintainer actions.