@doguyilmaz/tapster 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -187
- package/dist/cli.js +646 -197
- package/package.json +30 -4
package/README.md
CHANGED
|
@@ -1,216 +1,96 @@
|
|
|
1
|
+
<p><img src="https://raw.githubusercontent.com/doguyilmaz/tapster/main/site/public/logo-512.png" width="112" alt="The tapster octopus, a courier carrying sealed parcels"></p>
|
|
2
|
+
|
|
1
3
|
# tapster
|
|
2
4
|
|
|
3
5
|
tapster turns your Homebrew tap into the one place that signs, notarizes and publishes the releases of all your
|
|
4
|
-
projects. Each project
|
|
5
|
-
tap token.
|
|
6
|
-
|
|
7
|
-
It covers command line tools written in Go (with GoReleaser) or Bun. Releases get Developer ID signatures, Apple
|
|
8
|
-
notarization, a Homebrew cask and, with Windows builds, a Scoop manifest. It also covers macOS apps that update
|
|
9
|
-
through Sparkle: the hub signs every piece of code in the app, builds and notarizes the DMG and signs the update feed.
|
|
10
|
-
Command line tools with Linux builds can also ship to apt and dnf from the hub's GitHub Pages site.
|
|
11
|
-
|
|
12
|
-
## How it works
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
project (push tag v1.2.3) hub: you/homebrew-tap
|
|
16
|
-
builds, attests, no secrets runs tapster on a schedule or when rung
|
|
17
|
-
-> draft release + checksums.txt -> signs and notarizes the macOS binaries
|
|
18
|
-
replaces the archives, publishes the release
|
|
19
|
-
writes Casks/<name>.rb and bucket/<name>.json
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
1. A project pushes a tag. Its workflow builds the archives, attests them and opens a draft release with
|
|
23
|
-
`checksums.txt`.
|
|
24
|
-
2. The hub's `tapster` workflow finds drafts that are ready. It downloads them and checks every file against
|
|
25
|
-
`checksums.txt` and the project's build attestation. Then it signs and notarizes the macOS binaries.
|
|
26
|
-
3. It swaps the signed archives into the draft, publishes the release and commits the cask and the Scoop manifest to
|
|
27
|
-
the hub.
|
|
28
|
-
|
|
29
|
-
The design, including the security model, is in
|
|
30
|
-
[docs/superpowers/specs/2026-10-18-tapster-design.md](docs/superpowers/specs/2026-10-18-tapster-design.md). Apps are in
|
|
31
|
-
[docs/superpowers/specs/2026-10-19-tapster-phase2-design.md](docs/superpowers/specs/2026-10-19-tapster-phase2-design.md),
|
|
32
|
-
the doorbell and Linux packages in
|
|
33
|
-
[docs/superpowers/specs/2026-10-19-tapster-phase3-design.md](docs/superpowers/specs/2026-10-19-tapster-phase3-design.md).
|
|
6
|
+
projects. Each project builds its files and opens a draft release. It holds no signing certificate, no notary key and
|
|
7
|
+
no tap token.
|
|
34
8
|
|
|
35
|
-
|
|
9
|
+
**Tutorial and docs: [tapster.doguyilmaz.com](https://tapster.doguyilmaz.com/)**\
|
|
10
|
+
**npm: [@doguyilmaz/tapster](https://www.npmjs.com/package/@doguyilmaz/tapster)**
|
|
36
11
|
|
|
37
|
-
|
|
38
|
-
account. To sign software for macOS you also need a Developer ID Application certificate exported as `.p12` and an App
|
|
39
|
-
Store Connect API key (`.p8`); a hub that ships only Linux or Windows builds needs neither.
|
|
12
|
+
## Set it up in your browser
|
|
40
13
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
bunx @doguyilmaz/tapster init
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
`init` protects the hub, creates a GitHub App for it and stores the App key and, if you sign for macOS, your Apple
|
|
47
|
-
credentials as secrets of a `tapster` environment that only the `main` branch can open. It checks the certificate type
|
|
48
|
-
and expiry and, on macOS, asks Apple whether the notary key works before storing it. It never prints them. Then it
|
|
49
|
-
writes `tapster.yml`, the workflow and a README; review and commit them. If it stops halfway, run it again: it skips
|
|
50
|
-
what is done. A private hub needs GitHub Pro for environments.
|
|
51
|
-
|
|
52
|
-
The workflow pins the exact tapster that ran `init`. The hub looks for drafts every 10 minutes. A private hub looks
|
|
53
|
-
every hour, because GitHub bills each of its runs as at least a minute; `--every <minutes>` changes it. To move a hub to a newer
|
|
54
|
-
tapster, run `bunx @doguyilmaz/tapster@<version> init --workflow` and review the diff. If the hub has a doorbell, run
|
|
55
|
-
`init --rotate doorbell` too, so the Worker gets the same version and schedule. A hub that moves to this version from
|
|
56
|
-
an earlier one refuses each project until you run `tapster add` in it once, which protects its branches and tags.
|
|
57
|
-
|
|
58
|
-
## Add a project
|
|
59
|
-
|
|
60
|
-
Inside a clone of the project:
|
|
14
|
+
You need [Bun](https://bun.sh) and the GitHub CLI, signed in with `gh auth login`. Signing for macOS also needs an Apple
|
|
15
|
+
Developer account.
|
|
61
16
|
|
|
62
17
|
```sh
|
|
63
|
-
bunx @doguyilmaz/tapster
|
|
18
|
+
bunx @doguyilmaz/tapster setup
|
|
64
19
|
```
|
|
65
20
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
(`--workflow` names it if it is not `release.yml`).
|
|
69
|
-
- **Bun:** `add` writes a release workflow whose build job cross-compiles every target without write access; a second
|
|
70
|
-
job attests the archives and opens the draft.
|
|
71
|
-
|
|
72
|
-
`add` asks once which hub publishes the project and remembers it. It then:
|
|
73
|
-
|
|
74
|
-
1. protects the project so that only you can create, move or delete its branches and tags (a stolen App key could
|
|
75
|
-
otherwise tag code that the hub would sign). GitHub does not let personal repositories exempt Dependabot, so
|
|
76
|
-
`--allow-dependabot` leaves its `dependabot/...` branches open instead and adds `protection: dependabot` to the
|
|
77
|
-
entry, so the hub accepts that opening only where you wrote it down;
|
|
78
|
-
2. opens a pull request on the hub with the project's entry, checked the way the hub checks it;
|
|
79
|
-
3. opens the App's install page with the project selected, for one click;
|
|
80
|
-
4. points the release workflow at the doorbell, if the hub has one.
|
|
81
|
-
|
|
82
|
-
Releases that a workflow tags by itself still work: `add --auto-tag` gives the project a deploy key that only its
|
|
83
|
-
default branch can use and prints the step that pushes the tag with it.
|
|
84
|
-
|
|
85
|
-
## Apps
|
|
21
|
+
A page opens in your browser, served by your own computer. It walks you through every step and shows what each one
|
|
22
|
+
changes on GitHub:
|
|
86
23
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
24
|
+
1. **Choose or create your tap.** It becomes your hub.
|
|
25
|
+
2. **Protect it, create its GitHub App and store your Apple files.** Drop the `.p12` and `.p8`; your password manager
|
|
26
|
+
can keep the `.p12` password.
|
|
27
|
+
3. **Write the hub files.** tapster commits them to your tap through GitHub; you need no clone of it.
|
|
28
|
+
4. **Add your projects.** tapster finds the projects cloned on your computer, prepares their release workflows, protects
|
|
29
|
+
them and proposes them to the hub.
|
|
91
30
|
|
|
92
|
-
The
|
|
31
|
+
Then push a tag in a project. The [tutorial](https://tapster.doguyilmaz.com/tutorial/before/) shows every step.
|
|
93
32
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
2. signs every piece of code inside out with identifiers and entitlements it chooses itself (`code` in `tapster.yml`);
|
|
97
|
-
3. builds the DMG without Finder, then signs, notarizes and staples it;
|
|
98
|
-
4. signs the DMG and the appcast with the app's Sparkle key;
|
|
99
|
-
5. publishes the DMG, the feed and `checksums.txt`, removes the unsigned archive and writes the cask.
|
|
33
|
+
Prefer a terminal? Run `bunx @doguyilmaz/tapster init` in a clone of your tap and `bunx @doguyilmaz/tapster add` in
|
|
34
|
+
each project. See [Set up from a terminal](https://tapster.doguyilmaz.com/guides/terminal/).
|
|
100
35
|
|
|
101
|
-
|
|
36
|
+
## How it works
|
|
102
37
|
|
|
103
|
-
```xml
|
|
104
|
-
<key>SURequireSignedFeed</key><true/>
|
|
105
|
-
<key>SUVerifyUpdateBeforeExtraction</key><true/>
|
|
106
38
|
```
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
39
|
+
project (push tag v1.2.3) hub: you/homebrew-tap
|
|
40
|
+
builds, attests, holds no keys runs tapster on a schedule or when rung
|
|
41
|
+
-> draft release + checksums.txt -> checks every file against the project's build
|
|
42
|
+
signs and notarizes the macOS code
|
|
43
|
+
publishes the release
|
|
44
|
+
writes the cask, the Scoop manifest and the apt and dnf repositories
|
|
112
45
|
```
|
|
113
46
|
|
|
114
|
-
It
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
`SUPublicEDKey`. Apps that share a key share a label. Files that must
|
|
118
|
-
stay in every release unchanged, such as a frozen feed for old builds, go under `carry` with their digest.
|
|
47
|
+
It publishes Go tools built with GoReleaser, command line tools written for Bun and Mac apps that update with Sparkle.
|
|
48
|
+
Users install them with Homebrew, Scoop, apt or dnf. When something needs you, such as a certificate that expires
|
|
49
|
+
soon, the hub opens an issue and closes it once all is well.
|
|
119
50
|
|
|
120
|
-
##
|
|
51
|
+
## Your keys stay in your accounts
|
|
121
52
|
|
|
122
|
-
|
|
123
|
-
|
|
53
|
+
tapster has no server. Your Apple certificate, notary key and App key are secrets of your hub's `tapster` environment,
|
|
54
|
+
which only its `main` branch can open. Projects hold no signing keys. No one else, including tapster's author, ever
|
|
55
|
+
receives them. tapster's own code uses them only inside your hub's runs, at the commit your hub workflow pins. Read the
|
|
56
|
+
[security model](https://tapster.doguyilmaz.com/reference/security/).
|
|
124
57
|
|
|
125
|
-
|
|
126
|
-
bunx @doguyilmaz/tapster init --doorbell
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
It signs you in to Cloudflare with Wrangler, creates a second GitHub App that may only start the hub's workflow, deploys
|
|
130
|
-
the Worker with that App's key and tells every project where the doorbell is. A project's release workflow then rings
|
|
131
|
-
it after opening the draft: it sends a short-lived GitHub token that proves which repository and tag it comes from, and
|
|
132
|
-
the Worker starts the hub. The Worker also starts the hub on the schedule's interval when no run started in that time,
|
|
133
|
-
because GitHub runs schedules on a best effort basis. It turns the workflow back on if GitHub paused it for
|
|
134
|
-
inactivity; a workflow you disabled stays off.
|
|
58
|
+
## The Action
|
|
135
59
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
60
|
+
You do not write the hub workflow yourself: the setup writes it and pins this Action by commit. If you added the Action
|
|
61
|
+
from the Marketplace first, run it once. With no `mode` it runs a guide: its run summary checks your repository and
|
|
62
|
+
shows the next step.
|
|
139
63
|
|
|
140
64
|
```yaml
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
Then make the signing key and turn on GitHub Pages for the hub:
|
|
148
|
-
|
|
149
|
-
```sh
|
|
150
|
-
bunx @doguyilmaz/tapster init --linux
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
The key also stays in your login keychain (or the Secret Service on Linux), because GitHub never gives secrets back.
|
|
154
|
-
`init --rotate linux` makes a new one; the old key keeps signing next to it until `init --rotate linux --finish`, so
|
|
155
|
-
apt and dnf users can fetch the new key first.
|
|
156
|
-
|
|
157
|
-
After each release the hub builds a `.deb` and an `.rpm` per architecture from the published Linux archives. A second
|
|
158
|
-
job, which holds the key, checks every package against those archives itself, signs the rpms and the repository
|
|
159
|
-
metadata and publishes the site. The site's front page shows users the two commands to add the repository.
|
|
160
|
-
|
|
161
|
-
## Check the setup
|
|
162
|
-
|
|
163
|
-
```sh
|
|
164
|
-
bunx @doguyilmaz/tapster doctor
|
|
65
|
+
on: workflow_dispatch
|
|
66
|
+
jobs:
|
|
67
|
+
guide:
|
|
68
|
+
runs-on: ubuntu-24.04
|
|
69
|
+
steps:
|
|
70
|
+
- uses: doguyilmaz/tapster@v1.1.0
|
|
165
71
|
```
|
|
166
72
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
- **Short-lived access.** The hub reaches each project with an App token limited to that repository, revoked when the
|
|
189
|
-
work is done. Checking attestations gets a token that can only read them.
|
|
190
|
-
- **Only checked builds are signed.** Every file must match `checksums.txt`. Public projects must attest their
|
|
191
|
-
archives in their own release workflow. The hub verifies that before signing and checks the files once more right
|
|
192
|
-
before it publishes.
|
|
193
|
-
- **Only tapster's code sits next to a writing token.** Signing jobs hold no attestation rights; a separate job attests.
|
|
194
|
-
The hub runs no Homebrew; tapster's own CI checks the casks it renders with `brew style` and `brew audit`. The hub
|
|
195
|
-
allows only GitHub's actions and tapster's, pinned by commit.
|
|
196
|
-
- **Sparkle keys stay in the hub.** Only the step that signs the feed sees them. The key never reaches a command line
|
|
197
|
-
or a file. The hub refuses a key whose public half differs from the one installed copies trust.
|
|
198
|
-
- **Keys tapster makes are kept.** Sparkle and Linux keys that tapster creates are also saved in your keychain, where
|
|
199
|
-
every app must ask before reading them.
|
|
200
|
-
- **Packages are checked before they are signed.** The job that builds the Linux packages has no key. The job that signs
|
|
201
|
-
them rebuilds what each one must contain from the release and refuses scripts, dependencies, extra files or changed
|
|
202
|
-
files.
|
|
203
|
-
- **The doorbell can only knock.** Its App may start the hub's workflow and nothing else. It accepts only GitHub's own
|
|
204
|
-
tokens from your repositories, made for its address.
|
|
205
|
-
|
|
206
|
-
## Limits
|
|
207
|
-
|
|
208
|
-
- tapster serves personal accounts, not organizations.
|
|
209
|
-
- Signing macOS code needs macOS runners, which are free for public repositories. Runs that sign nothing for macOS use
|
|
210
|
-
Ubuntu.
|
|
211
|
-
- The hub publishes private projects too, but a cask, a Scoop manifest or an apt and dnf package can only point at a
|
|
212
|
-
public project, because users download without a token.
|
|
213
|
-
- Homebrew asks users to trust a tap before it loads casks from it (`brew trust you/tap`); the hub's README says so.
|
|
73
|
+
To move a hub to a newer release, see [Upgrade tapster](https://tapster.doguyilmaz.com/guides/upgrade/).
|
|
74
|
+
|
|
75
|
+
## Docs
|
|
76
|
+
|
|
77
|
+
- [Tutorial](https://tapster.doguyilmaz.com/tutorial/before/): from an empty tap to an installed release
|
|
78
|
+
- Guides: [Set up from a terminal](https://tapster.doguyilmaz.com/guides/terminal/),
|
|
79
|
+
[GoReleaser](https://tapster.doguyilmaz.com/guides/goreleaser/),
|
|
80
|
+
[Bun](https://tapster.doguyilmaz.com/guides/bun/),
|
|
81
|
+
[Mac apps with Sparkle](https://tapster.doguyilmaz.com/guides/sparkle/),
|
|
82
|
+
[apt and dnf](https://tapster.doguyilmaz.com/guides/linux/),
|
|
83
|
+
[the doorbell](https://tapster.doguyilmaz.com/guides/doorbell/),
|
|
84
|
+
[workflow tags](https://tapster.doguyilmaz.com/guides/auto-tag/),
|
|
85
|
+
[Dependabot](https://tapster.doguyilmaz.com/guides/dependabot/),
|
|
86
|
+
[key rotation](https://tapster.doguyilmaz.com/guides/rotate/),
|
|
87
|
+
[upgrades](https://tapster.doguyilmaz.com/guides/upgrade/)
|
|
88
|
+
- Reference: [Commands](https://tapster.doguyilmaz.com/reference/commands/),
|
|
89
|
+
[tapster.yml](https://tapster.doguyilmaz.com/reference/config/),
|
|
90
|
+
[Security](https://tapster.doguyilmaz.com/reference/security/),
|
|
91
|
+
[Troubleshooting](https://tapster.doguyilmaz.com/reference/troubleshooting/)
|
|
92
|
+
|
|
93
|
+
The design documents are in [docs/superpowers/specs](docs/superpowers/specs).
|
|
214
94
|
|
|
215
95
|
## License
|
|
216
96
|
|