releaseflow
PricingGalleryToolsBlogDocsLog inStart free
ReleaseFlow/Blog/Electron & Tauri
Electron & Tauri

Where to Host electron-builder Updates: GitHub Releases, S3, R2, Keygen or a Generic Server in Front of Private Releases

The first entry in electron-builder's publish list becomes the update server baked into every install. Picking it is a hosting decision you live with for years. Here is what each provider means for tokens, private releases, channels and leaving later.

By Kitze (@thekitze)Published December 6, 2026 UTC8 min read
In this guide
  • 1. The providers side by side
  • 2. Tokens in app-update.yml are readable by anyone
  • 3. A generic feed in front of GitHub releases

electron-builder's publish option accepts Keygen, a generic server, GitHub, S3, DigitalOcean Spaces, Cloudflare R2 and the Snap Store. Order matters: the first provider is written into app-update.yml inside the packaged app and becomes the server every installed copy polls. Since v27, publishing never happens implicitly; you request it with --publish or the publish option. Code signing is required for auto-updates on macOS, and the zip target must be built so latest-mac.yml exists.

1. The providers side by side

ProviderWhere files livePrivate buildsWhat you run
GitHubGitHub releases in your repositoryprivate: true with a GH_TOKEN at runtime, which each install then carriesNothing; subject to GitHub API limits
S3 / Spaces / R2A bucket you ownBucket policy or signed URLs that you buildBucket, CDN and upload credentials in CI
KeygenKeygen's distribution APIUpdate requests authenticated with the licensee's key or token (unless the product is OPEN)A Keygen account
GenericAny HTTPS URLWhatever the server enforceselectron-builder does not upload; you place the files
Generic → ReleaseFlowYour GitHub releases, public or privateReleaseFlow fetches private assets server-side; no token in the appNothing; publish to GitHub as usual

2. Tokens in app-update.yml are readable by anyone

electron-builder writes every option of the first provider except awsCredentials into app-update.yml in plain text, and its documentation warns never to put a token in the publish configuration. For private GitHub repositories that leaves a runtime GH_TOKEN, which still ends up on every customer's machine. A generic provider that points at a server you control avoids this: the app knows only a URL, and the server holds the credentials.

3. A generic feed in front of GitHub releases

ReleaseFlow is one such server. You keep publishing to GitHub with provider: github in CI, and the packaged app uses the generic provider pointed at the ReleaseFlow update route. electron-updater requests latest.yml, latest-mac.yml or latest-linux.yml and the installer relative to that URL; ReleaseFlow resolves them against the latest enabled release and serves the yml files unchanged, so sha512 verification still applies. Add ?channel=beta for beta builds and ?arch=arm64 or ?arch=x64 when you ship per-architecture builds.

Publish to GitHub in CI, poll ReleaseFlow from the app
# electron-builder.yml (CI uploads to GitHub releases)
publish:
  provider: github
mac:
  target: [dmg, zip]

# main process (installed app polls a generic URL)
# autoUpdater.setFeedURL({
#   provider: "generic",
#   url: "https://releaseflow.net/{username}/{slug}/update/darwin/1.4.0?channel=beta",
# });

This is not free of trade-offs. electron-updater's staged rollouts are set by a stagingPercentage field you add to latest.yml (and re-sign if you sign manifests); ReleaseFlow passes the file through as published, but has no rollout controls of its own. If you need regional CDN behaviour you configure yourself, a bucket on S3 or R2 gives more control. And if every customer must hold a license before an update can even be downloaded, Keygen authenticates update requests with the licensee's key or token; ReleaseFlow gates the app at runtime with license checks instead.

Choosing a provider
  • Open-source app with public releases: GitHub directly is enough.
  • You already run infrastructure and want full CDN control: S3, Spaces or R2.
  • Update downloads must require a license key or token: Keygen.
  • Private repository, no token in the app, no server to run: generic provider pointed at ReleaseFlow.
  • Whatever you choose, keep the first provider stable; changing it later needs one release that ships the new URL.
Lint the yml before you switch providers

A wrong path or a hex sha512 instead of base64 breaks every update. Check latest.yml and latest-mac.yml before the release that changes the feed URL.

Open the latest.yml generator
Companion Tools & Docs

Put this guide into practice

ReleaseFlow vs Hazel and Nuts →Self-hosted Electron update servers compared.Electron update feed docs →Generic provider URL, channels, arch and debug headers.Move updates off S3 →URL map, verification and rollout steps.electron-updater on private GitHub releases →Why GH_TOKEN must not ship inside the app.
ReleaseFlow

Ship your Mac or Electron app with a single git tag.

Permanent OS-aware download links, cached Sparkle & Electron auto-update feeds, Polar/Stripe PPP checkout, and license keys — with 0% cut on your sales.

Get started free →Generate electron-builder latest.ymlProduct gallery
Keep Reading

More desktop engineering guides

December 6, 2026ReleaseFlow vs ToDesktop for Software Teams: Cloud Electron Builds vs Update Feeds, Checkout and Licensing from Your Own GitHub Releases8 min readDecember 5, 2026ReleaseFlow vs CrabNebula Cloud: Electron & Native Swift/Sparkle Distribution with Built-in Licensing vs Tauri-First Release Hosting7 min readDecember 3, 2026Electron electron-updater on Private GitHub Releases Without Rate Limits7 min read
releaseflow
PrivacyTermsGalleryToolsBlogDocsChangelogAffiliatesSupport