Releases and artifacts
A release is one version of a product. An artifact is one file of a release, such as an installer for one platform and architecture.
Your application gets releases and artifacts from the Distribution API. The API lists releases, serves downloads and answers update checks.
Release properties
| Property | Description |
|---|---|
| Version | A semantic version, such as 2.1.0 or 2.1.0-beta.1. Each release of a product needs its own version. The version sets the channel. The version cannot change. |
| Name | A short label for the release. This property is optional. |
| Release notes | Text that describes the release. The Distribution API returns the name and the notes, so your application can show them. This property is optional. |
| Build | The build number that Sparkle and WinSparkle compare with the running application, such as 1400. Without a build, they compare the version. This property is optional. |
| Backdated to | A date that the release counts as published on for expired licenses. See Backdated releases. This property is optional. |
Channels
Seatify sets the channel of a release from its version. The first word of the prerelease tag decides the channel.
| Version | Channel |
|---|---|
2.1.0 | stable |
2.1.0-rc.1 | rc |
2.1.0-beta.1 | beta |
2.1.0-alpha.1 | alpha |
2.1.0-nightly.5 | dev |
The match is case-sensitive. The version 2.1.0-RC.1 is in the dev channel.
A request to the Distribution API can name a channel. It then sees that channel and every more stable channel.
| Channel in the request | Releases that the request sees |
|---|---|
stable | stable |
rc | rc and stable |
beta | beta, rc and stable |
alpha | alpha, beta, rc and stable |
dev | dev only |
- Most requests use
stablewhen they name no channel. - The update check uses the channel of the version that the application runs. An application from the beta channel stays on the beta channel.
- A request for an exact version ignores the channel.
Newest release
A request can ask for the newest release instead of an exact version. Seatify compares versions by semantic version rules. A prerelease comes before its release:
2.0.0-beta.2 < 2.0.0-beta.10 < 2.0.0-rc.1 < 2.0.0
A request can also name a constraint. The constraint 2 allows only 2.x.y versions. The constraint 2.1 allows only 2.1.y versions. See Get a release and List releases.
Release statuses
| Status | Behavior |
|---|---|
draft | The Distribution API does not show the release. This is the status of a new release. |
published | The release appears in listings, downloads and update checks. |
yanked | The release is withdrawn from listings, downloads and update checks. Its artifacts are kept, and the release can be published again. |
- The Distribution API answers a draft or a yanked release as if the release does not exist. This is true even for a valid license key.
- The publication date is set when the release is first published. The date stays the same when the release is yanked and published again.
Artifact properties
| Property | Description |
|---|---|
| Filename | The name of the file, such as MyApp-2.1.0-arm64.dmg. The filename is part of the download URL. Each artifact of a release needs its own filename. The filename cannot change. |
| Platform | The operating system that the file is for. See Platforms and architectures. This property is optional. |
| Architecture | The CPU architecture that the file is for. This property is optional. |
| File type | Seatify takes the file type from the extension of the filename, such as dmg or tar.gz. |
| Vendor signature | A signature that an update framework checks, such as a Tauri minisign signature or a Sparkle EdDSA signature. Seatify passes it to your application unchanged. This property is optional. |
The file of an artifact cannot change. A different file is a new artifact. Seatify also keeps the size, the SHA-256, the SHA-512 and a signature of each file. See Verifying files.
Platforms and architectures
| Platform | Operating system |
|---|---|
darwin | macOS |
windows | Windows |
linux | Linux |
ios | iOS |
android | Android |
freebsd | FreeBSD |
| Architecture | CPU |
|---|---|
amd64 | x86-64 |
arm64 | ARM64 |
x86 | x86 |
arm | 32-bit ARM |
universal | One build for several architectures, such as a universal macOS app. |
A request can name a platform, an architecture and a file type. The update check and the stable download link use them to choose one file.
- A
universalbuild matches a request for any architecture. A build for the exact architecture wins over auniversalbuild. - A release with no matching file is skipped. Seatify uses the next older release that has a matching file.
- A file without a platform or an architecture, such as
checksums.txt, never matches a request that names one. - If several files of one release match, the stable download link fails. Add the file type or the filename to the link.
Access to releases
The distribution setting of the product decides whether a request must send a license key. A license key that a request sends is always checked.
| License | Releases |
|---|---|
No license key, on an open product | All published releases. |
| Active, or in its grace period | All published releases. |
| Suspended | None. The request is refused. |
| Expired | This depends on the After expiry rule of the policy. |
| A key of another product | None. The request is refused with product_mismatch. |
The Distribution API shows only files whose upload has finished.
Backdated releases
A policy with the Perpetual fallback rule gives an expired license the releases that were published on or before its expiry date.
A backdated release counts as published on its backdated date for this rule. Use it to give a fix to customers whose license has expired.
- The backdated date must be earlier than the publication date.
- The backdated date changes only this rule. The Distribution API still returns the real publication date.
Verifying files
Seatify signs each file when its upload finishes. It uses the active signing key of your account. The Distribution API returns the SHA-256 of each file, its Ed25519 signature and the ID of the signing key. See Get a release.
To verify a downloaded file:
- Compute the SHA-256 of the file. It must match the SHA-256 that the Distribution API returned.
- Check the signature with the public key that your application embeds. The signed message is the text
artifact/followed by the SHA-256 in lower-case hex.
The release data comes from a signed response. See Verify signed responses.
A file keeps its signature when you rotate signing keys. An application that embeds only the new public key cannot verify it. Re-sign the file to sign it with the new active key. See Rotate signing keys.
Seatify does not check the vendor signature. Your update framework checks it.