diff --git a/manifest.ts b/manifest.ts index 6649c87..fba17ed 100644 --- a/manifest.ts +++ b/manifest.ts @@ -48,6 +48,24 @@ export const manifest: PluginManifest = { unauthenticatedPaths: ['/_web/*'], + // `tea` is not in any distribution, and Debian has an UNRELATED package of that name — a graphical + // text editor. So this is a release binary with an identity check: `Bun.which('tea')` cannot tell the + // two apart, and reporting the wrong one as satisfied is worse than reporting it missing. + osDependencies: [ + { + binary: 'tea', + reason: 'Pull requests, issues and comments. Plain git handles clones and pushes without it.', + // Empty on purpose. Every entry here would install the text editor. + packages: {}, + release: { + url: 'https://dl.gitea.com/tea/0.15.1/tea-0.15.1-{os}-{arch}', + // Gitea's tea prints `Version: 0.9.2 golang: … go-sdk: …`. The text editor prints nothing of + // the sort, and `go-sdk` is the least likely of those to appear in an unrelated tool. + identify: { args: ['--version'], contains: 'go-sdk' }, + }, + }, + ], + permissions: [ { key: 'gitea',