private-software-distribution
БесплатноЗапускает вложенные скриптыНе проверенUse when setting up private self-updating distribution to a project, with signed updates for closed testers through a Cloudflare Worker and R2.
от sammcj★ 175 звёзд на GitHubОб этом скилле
Ships signed, self-updating builds to closed testers from a Cloudflare Worker, with no public downloads. It suits any updater that can send an auth header and verify a signature. This is a pattern to adapt, so read the updater's own docs for the client side.
How it works
- Client sends
GETfeed withAuthorization: Bearer <token>. - Worker looks up
sha256(token)in KV. Unknown gets 401, over a rate limit gets 429. - Registered client gets the feed from R2, then
GET /download/<archive>with the same header. - Client verifies the signature against its embedded public key, then installs.
Two separate controls:
- Access comes from the Worker. KV holds only SHA-256 hashes of tokens, so a KV leak yields nothing usable.
- Integrity comes from the signature. The client accepts only archives signed by the key it shipped with, so a compromised bucket or Worker can't push code to testers.
Per project: a Worker, an R2 bucket, a KV namespace, a hostname and an update signing key. Releases run locally, so signing keys stay off CI.
Setup
- Ask the user for the project name, a hostname on their Cloudflare zone, and which rate limit namespaces are in use.
- Copy
assets/into the project root and renamepackage.json.tmpltopackage.json. Fill inwrangler.jsonc, and add the feed file toROUTEinsrc/index.jsif it isn'tlatest.jsonorappcast.xml. - Generate the update key with the updater's tool and embed the public half in the client.
- Provision Cloudflare and deploy.
- Add the client.
- Add a single release command, such as
make release, following the pipeline below. - Write a
RELEASING.mdin the project covering releases, recovery, tester tokens and key rules, so operating it needs nothing from this skill. - Release, add a token with
scripts/beta-token.sh add <label>, and give it and the first build to a tester by hand. Release again and confirm the first build updates itself.
Leave these to the user: key passwords, private key backups, sending tokens. Confirm before anything that publishes or deploys.
Cloudflare
Run from updates-worker/:
npx wrangler@4 r2 bucket create <project>-updates
npx wrangler@4 kv namespace create <PROJECT>_BETA_TOKENS
npx wrangler@4 deploy
- Use a project-specific KV title. Sharing a namespace admits one project's testers to another's builds. If
kv namespace createoffers to add the binding, decline and put the id inwrangler.jsonc. - Rate limit
namespace_ids must be unique across the account and can't be listed. Each project'swrangler.jsoncholds its pair. - R2 must be enabled once per account in the dashboard.
- The custom domain creates its own DNS record and certificate, even two levels deep, so the hostname must have no existing CNAME. Expect TLS failures for a few minutes after the first deploy.
- After deploy, expect 401 with no token, 401 with an unknown token, 404 on an unknown path and 405 on POST. The first publish proves R2.
wrangler r2 object puthandles up to 315 MB, andwranglercan't list a bucket.wrangler whoamiexits 0 when logged out, so read its text.
Client rules
- No token, no request. Keep the token in the Keychain or equivalent, and read it per check so a new one applies without a restart.
- No feed, no updater. Dev builds must not check, or they replace themselves with a release. Give them a separate bundle id.
- Check at launch and daily, plus a manual check with a 60 second cooldown, because the Worker allows 2 feed requests per token per minute. Automatic checks stay silent on failure.
- Restart only on request, after the download, and never during work the user would lose.
- Keep the bundle id and team stable, so macOS keeps its permissions across updates.
Known starting points:
- Sparkle: set
updater.httpHeaders, generate withgenerate_keys --account <project>because the default account is shared, and leaveSUFeedURLout of dev builds. - Tauri:
check({ headers })keeps the header for the download. A local build doesn't writelatest.json, so generate it. Restart runs afterRunEvent::Exit, so an_exitthere stops the relaunch. - CLIs: sign with
minisign, which Tauri's signatures also wrap. Rust hasminisign-verifyandself-replace, and Go hasaead.dev/minisignandminio/selfupdate.
Release pipeline
Order it so anything that can fail cheaply runs before the version changes, and a refused release changes nothing:
- Preflight: clean tree, release notes present,
wranglerlogged in, signing credentials found. - Stamp the version.
- Build, sign, notarise.
- Write the feed.
- Verify before publishing: the archive passes against the embedded public key, a flipped byte fails, and the URL is https on the feed's host. Sparkle sends the token to every URL in the feed.
- Commit and tag.
- Upload archives first and the feed last, so the live feed never names a missing file.
- Delete archives past the
Установить private-software-distribution в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл private-software-distribution?
Use when setting up private self-updating distribution to a project, with signed updates for closed testers through a Cloudflare Worker and R2.
Как установить скилл private-software-distribution?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл private-software-distribution запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic