---
title: "Ship updates only to paying customers · Clavem"
description: "Point Sparkle, electron-updater or the Tauri updater at a feed that checks the license key. Paying customers update, everyone else sees no update."
url: "https://clavem.io/blog/ship-updates-only-to-paying-customers"
---

# Ship updates only to paying customers, with Sparkle, Electron or Tauri

Most update feeds are public. Anyone with the URL gets every new build, licensed or not. Clavem serves the feed for Sparkle, electron-updater and Tauri, and only a valid license key of your product gets the update. Your app sends the key as a header, and the updater does the rest.

By [Clavem](https://clavem.io/about) · Updated 28 November 2026

## The problem with a public feed

Sparkle, electron-updater and the Tauri updater all work the same way. The app downloads a small file, the feed, that says what the newest version is and where to get it. If it is newer, the app downloads it and installs it.

The usual feed is a static file on GitHub releases, S3 or your website. Anyone who knows the address can read it and download every new build. A license check in the app still stops an unlicensed copy from running, but the build itself is free for the taking, and a refunded customer keeps getting updates forever.

You can fix that with your own small server that checks the key before it answers. Most people never get around to it. Clavem now does it for you.

## How it works

1. You upload the release files to Clavem and publish the release, as you would for buyers’ downloads.
2. You copy the SHA-512 or the signature from your build tools next to each file.
3. Your app’s updater reads the feed from Clavem and sends the buyer’s license key in the `X-License-Key` header.
4. Clavem checks the key. If it belongs to a license of that product that is neither disabled nor expired, the feed has the newest release, with a download link that lasts one hour. If not, the feed says there is no update.

The feed is always the newest published release. Withdraw a release and it is gone from the feeds at once, because nothing is cached.

## Sparkle

Set `SUFeedURL` to the product’s appcast and send the key with Sparkle 2’s `httpHeaders`:

```swift
updaterController.updater.httpHeaders = ["X-License-Key": licenseKey]
```

Sign the `.zip` or `.dmg` with `sign_update` as usual and paste the `sparkle:edSignature` value into the file’s **Update info** in Clavem. Without a valid key, Sparkle gets an appcast with no item and tells the user they are up to date.

## electron-updater

Use the generic provider with the product’s feed address and set `requestHeaders`:

```js
autoUpdater.setFeedURL({ provider: 'generic', url: 'https://clavem.io/v1/updates/75' });
autoUpdater.requestHeaders = { 'X-License-Key': licenseKey };
autoUpdater.checkForUpdatesAndNotify();
```

electron-updater reads `latest-mac.yml`, `latest.yml` or `latest-linux.yml` under that address. Clavem writes them for you. Copy each file’s `sha512` from the yml files electron-builder leaves in `dist/`. On macOS, build a `zip` next to the `dmg`, because electron-updater installs from the zip. Without a valid key the feed answers 404, which electron-updater reports as an error event. Listen for it so it does not end up in your crash logs.

## Tauri

Add the feed to `plugins.updater.endpoints` in `tauri.conf.json`, with Tauri’s own placeholders:

```
https://clavem.io/v1/updates/75/tauri/{{target}}/{{arch}}/{{current_version}}
```

Then pass the key to `check()`:

```ts
const update = await check({ headers: { 'X-License-Key': licenseKey } });
```

Upload each update bundle with its platform, such as `darwin-aarch64` or `windows-x86_64`, and paste the contents of its `.sig` file as the signature. A newer version gets the update, the same or an older one gets 204, and so does a key that is not valid.

## What it does not do

It serves one release, the newest. There are no beta channels or staged rollouts yet, no delta updates and no Squirrel.Windows `RELEASES` file. Clavem does not sign or hash your files either. Your signing key stays with you, which is where it belongs.

The [auto-updates guide](https://clavem.io/docs/updates) has the full setup for each updater, what every answer looks like and how to set it all from the Admin API or from Claude.

## Questions

Do I still need to sign my updates?

Yes. Sparkle and Tauri refuse an update without a valid signature, and electron-updater checks the SHA-512. You sign with your own key, as before, and paste the signature or hash next to the file in Clavem. Clavem never holds your signing key.

What does an app without a valid license see?

Sparkle sees an appcast with no item and says the app is up to date. Tauri gets 204, which means no update. electron-updater gets a 404, which it reports as an error event without crashing. A wrong key looks exactly like no update for Sparkle and Tauri.

Can someone share the download link?

The link in the feed is signed and lasts one hour. Someone can pass it on within that hour, as with any download. The feed itself does not answer without a valid key, so the next release needs a key again.

Do trial users get updates?

Yes, while the trial runs. A trial is a normal license with an end date. Once it has ended, the key is expired and the feed shows no update.

Does this cost extra?

No. The feeds come with every plan, and downloads are never metered.

## Sources

1. [Sparkle documentation (publishing an update, EdDSA signatures)](https://sparkle-project.org/documentation/publishing/)
2. [electron-builder auto update (generic provider, requestHeaders)](https://www.electron.build/auto-update)
3. [Tauri v2 updater plugin (dynamic update server, headers)](https://v2.tauri.app/plugin/updater/)

Add licensing in an afternoon

Connect Stripe, Polar, Dodo Payments or Creem, create a product, call one endpoint from your app. The quickstart walks through every step.

[Read the quickstart](https://clavem.io/docs)
