# Publish a release

This guide publishes a new version of your application. At the end, the release has a file for each platform, it is published, and the update check offers it to older versions of your application.

## Before you start

- A [product](../../../concepts/products/) for your application. The dashboard shows the product ID on the product page.
- A build of your application for each platform, such as a `.dmg` for macOS and an `.exe` for Windows. Each file can be up to 512 MiB.
- A license key of the product, to test the update check. A product with the `open` [distribution](../../../concepts/products/#distribution) setting does not need one.

The examples call `https://dist.seatify.dev`. In curl, the product ID and the license key are the variables `$PRODUCT_ID` and `$LICENSE_KEY`. In the other languages, they are variables of your application.

## Choose the version

The version is a semantic version, such as `1.2.0`. Do not add a `v` prefix. Each release of a product needs its own version, and the version cannot change after you create the release.

The version decides the channel. `1.2.0` is in the `stable` channel. `1.2.0-beta.1` is in the `beta` channel, and an application on the `stable` channel does not see it. See [Channels](../../../concepts/releases-and-artifacts/#channels).

The update check offers a release only when its version is higher than the version that your application runs. See [Newest release](../../../concepts/releases-and-artifacts/#newest-release).

## Steps

{{% steps %}}

### Create the release

Create the release in the dashboard with its version. A name and release notes are optional. The Distribution API returns them, so your application can show them to the user.

A new release is a draft. The Distribution API does not show a draft to anyone, so you can prepare the release before you publish it.

### Upload the files

Upload one file for each platform and architecture. Give each file its platform and its architecture. The update check and the stable download links choose a file by these two values. A file without them, such as `checksums.txt`, is never chosen. See [Platforms and architectures](../../../concepts/releases-and-artifacts/#platforms-and-architectures).

| File | Platform | Architecture |
| --- | --- | --- |
| `BEACON-1.2.0-universal.dmg` | `darwin` | `universal` |
| `BEACON-1.2.0-x64.exe` | `windows` | `amd64` |
| `BEACON-1.2.0-linux-amd64.tar.gz` | `linux` | `amd64` |

The dashboard guesses the platform and the architecture from the filename. Check them before the upload. The filename is part of the download URL, and it cannot change.

Your browser computes the SHA-256 and the SHA-512 of the file and uploads the file. Seatify then checks the size and the SHA-256, and signs the file with the active [signing key](../../../concepts/signing-keys/). The status of the file is then Uploaded. If the upload fails, upload the file again.

The file of an artifact cannot change. To replace a file, delete it and upload the new file.

If your update framework checks its own signature, such as Sparkle or Tauri, sign the file with the tool of the framework. Then add the signature to the file in the dashboard. Seatify returns it unchanged in `vendor_signature`. A Tauri `.sig` file that you upload together with its file becomes the signature of that file. See [Update a Tauri application](../../updaters/tauri-updates/).

### Publish the release

Publish the release in the dashboard. The release appears immediately in listings, downloads and update checks.

Seatify refuses to publish a release that has no uploaded file. It also refuses while a file is still waiting for its upload. A failed file does not block the release, and the Distribution API does not show it.

### Check the update

Send an update check with the version of an older release and one platform. Repeat it for each platform. The answer must offer the new release and name the file for the platform.

{{< tabs >}}
{{< tab name="curl" >}}
```bash
curl "https://dist.seatify.dev/v1/products/$PRODUCT_ID/update?version=1.1.0&platform=windows&arch=amd64" \
  -H "Seatify-License-Key: $LICENSE_KEY"
```
{{< /tab >}}
{{< tab name="Swift" >}}
```swift
import Foundation

struct UpdateCheck: Decodable {
    struct Update: Decodable {
        struct Artifact: Decodable {
            let filename: String
            let url: String
        }

        let version: String
        let artifact: Artifact?
    }

    let valid: Bool
    let reason: String?
    let update: Update?
}

var components = URLComponents(string: "https://dist.seatify.dev/v1/products/\(productID)/update")!
components.queryItems = [
    URLQueryItem(name: "version", value: "1.1.0"),
    URLQueryItem(name: "platform", value: "windows"),
    URLQueryItem(name: "arch", value: "amd64"),
]

var request = URLRequest(url: components.url!)
request.setValue(licenseKey, forHTTPHeaderField: "Seatify-License-Key")

let (data, _) = try await URLSession.shared.data(for: request)
let check = try JSONDecoder().decode(UpdateCheck.self, from: data)
```
{{< /tab >}}
{{< tab name="C#" >}}
```csharp
using System.Net.Http.Json;

using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Seatify-License-Key", licenseKey);

var check = await client.GetFromJsonAsync<UpdateCheck>(
    $"https://dist.seatify.dev/v1/products/{productId}/update?version=1.1.0&platform=windows&arch=amd64");

record UpdateCheck(bool Valid, string? Reason, Update? Update);
record Update(string Version, Artifact? Artifact);
record Artifact(string Filename, string Url);
```
{{< /tab >}}
{{< tab name="Go" >}}
```go
query := url.Values{
	"version":  {"1.1.0"},
	"platform": {"windows"},
	"arch":     {"amd64"},
}

req, err := http.NewRequest("GET", "https://dist.seatify.dev/v1/products/"+productID+"/update?"+query.Encode(), nil)
if err != nil {
	return err
}
req.Header.Set("Seatify-License-Key", licenseKey)

res, err := http.DefaultClient.Do(req)
if err != nil {
	return err
}
defer res.Body.Close()

var check struct {
	Valid  bool    `json:"valid"`
	Reason *string `json:"reason"`
	Update *struct {
		Version  string `json:"version"`
		Artifact *struct {
			Filename string `json:"filename"`
			URL      string `json:"url"`
		} `json:"artifact"`
	} `json:"update"`
}
err = json.NewDecoder(res.Body).Decode(&check)
```
{{< /tab >}}
{{< tab name="JavaScript" >}}
```javascript
const query = new URLSearchParams({ version: "1.1.0", platform: "windows", arch: "amd64" });

const response = await fetch(`https://dist.seatify.dev/v1/products/${productId}/update?${query}`, {
  headers: { "Seatify-License-Key": licenseKey },
});
const check = await response.json();
```
{{< /tab >}}
{{< /tabs >}}

The answer offers the new release in `update`:

```json
{
  "valid": true,
  "reason": null,
  "current": "1.1.0",
  "update": {
    "id": "<release id>",
    "version": "1.2.0",
    "channel": "stable",
    "name": "Spring release",
    "notes": "Everything from the beta, and fixes.",
    "published_at": "2026-08-09T23:00:00Z",
    "artifacts": [
      {
        "id": "<artifact id>",
        "filename": "BEACON-1.2.0-universal.dmg",
        "filetype": "dmg",
        "platform": "darwin",
        "arch": "universal",
        "content_type": "application/x-apple-diskimage",
        "size": 53,
        "sha256": "<sha-256 in hex>",
        "signature": "<signature in Base64>",
        "signing_key_id": "<signing key id>",
        "vendor_signature": null,
        "url": "https://dist.seatify.dev/v1/products/<product id>/releases/1.2.0/artifacts/BEACON-1.2.0-universal.dmg"
      },
      {
        "id": "<artifact id>",
        "filename": "BEACON-1.2.0-x64.exe",
        "filetype": "exe",
        "platform": "windows",
        "arch": "amd64",
        "content_type": "application/vnd.microsoft.portable-executable",
        "size": 50,
        "sha256": "<sha-256 in hex>",
        "signature": "<signature in Base64>",
        "signing_key_id": "<signing key id>",
        "vendor_signature": null,
        "url": "https://dist.seatify.dev/v1/products/<product id>/releases/1.2.0/artifacts/BEACON-1.2.0-x64.exe"
      },
      {
        "id": "<artifact id>",
        "filename": "BEACON-1.2.0-linux-amd64.tar.gz",
        "filetype": "tar.gz",
        "platform": "linux",
        "arch": "amd64",
        "content_type": "application/gzip",
        "size": 48,
        "sha256": "<sha-256 in hex>",
        "signature": "<signature in Base64>",
        "signing_key_id": "<signing key id>",
        "vendor_signature": null,
        "url": "https://dist.seatify.dev/v1/products/<product id>/releases/1.2.0/artifacts/BEACON-1.2.0-linux-amd64.tar.gz"
      }
    ],
    "artifact": {
      "id": "<artifact id>",
      "filename": "BEACON-1.2.0-x64.exe",
      "filetype": "exe",
      "platform": "windows",
      "arch": "amd64",
      "content_type": "application/vnd.microsoft.portable-executable",
      "size": 50,
      "sha256": "<sha-256 in hex>",
      "signature": "<signature in Base64>",
      "signing_key_id": "<signing key id>",
      "vendor_signature": null,
      "url": "https://dist.seatify.dev/v1/products/<product id>/releases/1.2.0/artifacts/BEACON-1.2.0-x64.exe"
    }
  }
}
```

`update.artifact` is the file for the platform in the request. `update.artifacts` lists every file of the release. If `update` is `null`, see [Update not offered](#update-not-offered).

{{% /steps %}}

## Update not offered

The update check answers `update` set to `null` when your application runs the newest version that it can install. Check these causes:

| Cause | Fix |
| --- | --- |
| The release is still a draft, or it is yanked. | Publish the release. |
| The version in the check is the same as the release or higher. | Send the version of an older release. |
| The release is a prerelease, such as `1.2.0-beta.1`, and the check sends a stable version. | The check stays in the channel of the version that it sends. Add `channel=beta` to the check. |
| No file of the release has the platform and the architecture of the check. | Set the platform and the architecture of the file. Seatify skips such a release and offers an older release instead. |
| The upload of the file has not finished, or it failed. | Wait for the upload, or upload the file again. |
| The license has expired, and its policy uses Perpetual fallback. | The license sees only the releases that were published on or before its expiry date. See [Fix for expired licenses](#fix-for-expired-licenses). |

`update.artifact` is `null` when several files of the release match the check. A check without a platform, an architecture and a file type matches every file. So add the platform and the architecture of the device to the check. A release can also have several files for one platform, such as a `.dmg` and a `.zip` for macOS. Then add `filetype` too, such as `filetype=dmg`.

If `valid` is `false`, the license was refused, and `reason` names the cause, such as `suspended`, `expired` or `product_mismatch`. A check without a license key on a `licensed` product fails with the status 401. See [Access to releases](../../../concepts/releases-and-artifacts/#access-to-releases).

## Change a published release

- You can change the name, the release notes and the backdated date.
- You can add a file. It appears in the Distribution API when its upload finishes.
- You can change the platform, the architecture and the vendor signature of a file.
- You cannot change the version, a filename or the file itself. To change the version, delete the release and create a new one.

## Withdraw a release

Yank the release in the dashboard. It disappears immediately from listings, downloads and update checks. Its files are kept. Publish it again to bring it back. It keeps its first publication date.

Copies of your application that installed the release keep it. The update check never offers an older version. So publish a fixed release with a higher version, such as `1.2.1`.

Deletion is permanent. It removes the release and every file, and downloads stop immediately. Yank a release instead if you may need it again.

## Fix for expired licenses

A policy with the [Perpetual fallback](../../../concepts/policies/#after-expiry) rule gives an expired license the releases that were published on or before its expiry date. A fix that you publish later does not reach these licenses.

To give them the fix, backdate the release to a date before their expiry. The backdated date must be earlier than the publication date. See [Backdated releases](../../../concepts/releases-and-artifacts/#backdated-releases).

## Next steps

- [Updates and download links](../updates-and-download-links/)
- [Verify signed responses](../../signatures/verify-signed-responses/)
- [Rotate signing keys](../../signatures/rotate-signing-keys/)
- [Releases and artifacts](../../../concepts/releases-and-artifacts/)
- [Check for an update](../../../distribution-api/check-for-an-update/)

