# Versions and downloads

## Versions

- One version number covers everything in a release: the Android app, the relay, the desktop service and the libraries behind them.
- The format is `X.Y.Z` or `X.Y.Z-<stage>.N`, where the stage is `alpha`, `beta` or `rc`. A version moves through `alpha.1`, `alpha.2`, ..., `beta.1`, ..., `rc.1`, ..., and then `X.Y.Z` with no suffix. The stage is the **channel**: `alpha`, `beta`, `rc` or `stable`.
- The Android `versionCode` is computed from the version, so it always goes up: `((X*100 + Y)*100 + Z)*1000 + stage*100 + N`, with alpha = 0, beta = 1, rc = 2 and stable = 3 (N = 0). For example `0.0.0-alpha.1` is 1, `0.1.0-beta.2` is 100102, and `1.0.0` is 100000300. The `versionName` is the version itself.
- A published version never changes. A fix ships as the next number.
- The current version is `0.0.0-alpha.1`, on the `alpha` channel.

## Layout on pkgs.dopame.ai

```
https://pkgs.dopame.ai/mobileconnect/latest          the newest version number, one line
https://pkgs.dopame.ai/mobileconnect/latest.json     the newest release.json
https://pkgs.dopame.ai/mobileconnect/<version>/
  dopame-connect-<version>.apk
  mobileconnect-relay-x86_64-unknown-linux-musl.tar.xz
  mobileconnect-relay-aarch64-unknown-linux-musl.tar.xz
  mobileconnect-service-<version>.tar.gz
  SHA256SUMS
  release.json
```

Files in a version directory are cached for a year and are never overwritten. `latest` and `latest.json` are not cached and are updated last, so they only ever point at a complete release. Older versions stay available at their own address.

`release.json` (and `latest.json`) describe one release:

```json
{
  "version": "0.0.0-alpha.1",
  "channel": "alpha",
  "versionCode": 1,
  "commit": "8f42ce82da3540b27ab7d3c959c59a5685a30f25",
  "date": "2026-11-21",
  "base": "https://pkgs.dopame.ai/mobileconnect/0.0.0-alpha.1/",
  "files": {
    "dopame-connect-0.0.0-alpha.1.apk": { "size": 35534512, "sha256": "a04cccbd…" }
  }
}
```

To fetch the newest app from a script:

```sh
base=$(curl -fsSL https://pkgs.dopame.ai/mobileconnect/latest.json | jq -r .base)
version=$(curl -fsSL https://pkgs.dopame.ai/mobileconnect/latest)
curl -fsSLO "${base}dopame-connect-${version}.apk"
```

## Releases

| Version | Channel | Date | Notes |
| --- | --- | --- | --- |
| `0.0.0-alpha.1` | alpha | 2026-11-21 | First release: Android app, relay for x86_64 and aarch64 Linux, desktop service. Signed with a development certificate. The Dopame desktop has no Phone settings panel yet. |
