Rename the project to Voelin; packages hold only the app, tsgw is a Linux server package

The product is Voelin (app id io.github.faumaray.Voelin), everywhere:
- crates tsc-* -> voelin-* (and voelin-fuzz), the desktop binary
  tsc-desktop -> voelin, the development CLI tsctl -> voelinctl;
- the Android app: applicationId, Kotlin package io.github.faumaray.voelin,
  VoelinApp, libvoelin_android.so (JNI class names follow);
- TSC_* environment variables -> VOELIN_*, Gradle properties tsc.* ->
  voelin.*, signing secrets VOELIN_SIGNING_*;
- the data/config/cache/state folder tsc -> voelin, the keyring service,
  thread names, the dev compose project;
- desktop file, metainfo, icon, Flatpak manifest, NSIS installer, docs.
The gateway keeps its name: bin tsgw (crate voelin-gateway), TSGW_* env
vars, the tsgw.v1+json protocol, the tsgw image. The window title and the
About page show "Voelin <version>" from voelin_platform::APP_NAME.

Packages (scripts/package.sh): the app only (voelin, voelin.exe, APKs,
Flatpak). voelinctl is a development tool and in no package. tsgw is for
servers and now its own Linux package, tsgw_<v>_amd64.deb and
tsgw-<v>-linux-x86_64.tar.gz, with a sandboxed systemd unit
(packaging/linux/tsgw.service; /etc/tsgw config, /var/lib/tsgw state) and
dependencies of its own (no GUI libraries). docs/gateway-admin.md has an
Install section.

Fixes:
- package-windows: makensis on Windows found no file through "D:/a/..."
  paths; pass Windows paths (cygpath -w).
- StartupWMClass is the app id, which the app sets as its X11 WM_CLASS
  (it was the binary name, so desktops could not match the window).
- Gradle wrapper download timeout 10 s -> 60 s (slow proxies).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-26 21:11:17 +00:00
1 parent ca5d203e9d
commit 216e21fec5
197 files changed
+1357 -1210

No files matched your search

+24 -24
View File
@@ -1,14 +1,14 @@
# Android app
The Android app is the desktop UI (`tsc-ui`, Slint) running in a
The Android app is the desktop UI (`voelin-ui`, Slint) running in a
`NativeActivity`, plus a thin Kotlin layer for what only Java APIs can do:
foreground services, the screen-capture consent, the Keystore.
```
android/ Gradle project (AGP 8.13, Kotlin 2.3, Gradle 8.14.3 wrapper)
app/src/main/java/.../tsc/ MainActivity (NativeActivity), Bridge, Native,
app/src/main/java/.../voelin/ MainActivity (NativeActivity), Bridge, Native,
VoiceService, ScreenCaptureService, SecretStore
crates/tsc-android/ libtsc_android.so: android_main, engine host,
crates/voelin-android/ libvoelin_android.so: android_main, engine host,
JNI glue, capture providers, Keystore secrets
```
@@ -29,16 +29,16 @@ Requirements:
```sh
cd android
./gradlew assembleDebug # arm64-v8a + x86_64 (emulator)
./gradlew assembleDebug -Ptsc.abis=arm64-v8a # phones only, half the build
./gradlew assembleDebug -Pvoelin.abis=arm64-v8a # phones only, half the build
adb install -r app/build/outputs/apk/debug/app-debug.apk
adb logcat -s RustStdoutStderr ScreenCaptureService VoiceService SecretStore
```
`assemble<BuildType>` runs `cargo ndk ... build -p tsc-android` (with
`assemble<BuildType>` runs `cargo ndk ... build -p voelin-android` (with
`--release` for release) into `app/build/rust/<build type>/<abi>/` before the
native libraries are merged; `-Ptsc.skipCargo=true` packages what is there
native libraries are merged; `-Pvoelin.skipCargo=true` packages what is there
(for CI steps that built the library already). The app's `versionName` is the
version of `crates/tsc-android`, and `versionCode` is derived from it
version of `crates/voelin-android`, and `versionCode` is derived from it
(docs/release.md). The Kotlin half of `rustls-platform-verifier` comes from
its Maven archive in the version `Cargo.lock` pins.
@@ -48,14 +48,14 @@ environment variables; nothing of it lives in the repository:
| Gradle property | Environment variable |
|---|---|
| `tsc.signing.storeFile` | `TSC_SIGNING_STORE_FILE` |
| `tsc.signing.storePassword` | `TSC_SIGNING_STORE_PASSWORD` |
| `tsc.signing.keyAlias` | `TSC_SIGNING_KEY_ALIAS` |
| `tsc.signing.keyPassword` | `TSC_SIGNING_KEY_PASSWORD` |
| `voelin.signing.storeFile` | `VOELIN_SIGNING_STORE_FILE` |
| `voelin.signing.storePassword` | `VOELIN_SIGNING_STORE_PASSWORD` |
| `voelin.signing.keyAlias` | `VOELIN_SIGNING_KEY_ALIAS` |
| `voelin.signing.keyPassword` | `VOELIN_SIGNING_KEY_PASSWORD` |
```sh
TSC_SIGNING_STORE_FILE=~/keys/tsc-release.jks TSC_SIGNING_STORE_PASSWORD=... \
TSC_SIGNING_KEY_ALIAS=tsc TSC_SIGNING_KEY_PASSWORD=... ./gradlew assembleRelease bundleRelease
VOELIN_SIGNING_STORE_FILE=~/keys/voelin-release.jks VOELIN_SIGNING_STORE_PASSWORD=... \
VOELIN_SIGNING_KEY_ALIAS=voelin VOELIN_SIGNING_KEY_PASSWORD=... ./gradlew assembleRelease bundleRelease
```
minSdk is 29 (Android 10: MediaProjection foreground service type, playback
@@ -63,19 +63,19 @@ capture, NDK MediaCodec format queries); targetSdk and compileSdk 36.
## How it fits together
- **Entry**: the activity loads `libtsc_android.so` (`android.app.lib_name`);
- **Entry**: the activity loads `libvoelin_android.so` (`android.app.lib_name`);
android-activity calls `android_main` on a new thread for every activity
instance. It installs crash reports (opt-in, `crash_reports` setting,
`<files>/crash-reports`), looks up the Kotlin `Bridge` class, initialises
`rustls-platform-verifier` (HTTPS certificate checks against the system
trust store), asks for the microphone and notification permissions, sets
Slint's Android backend and runs `tsc_ui::run` with the app's files
Slint's Android backend and runs `voelin_ui::run` with the app's files
directory, Keystore secrets and the process's engine.
- **Engine for the process** (`host.rs`): one tokio runtime and `Engine`
per process. The activity may be destroyed while voice goes on; a new
window attaches and first receives events that rebuild the current state
(server info, state, presence, the last 300 chat messages per session,
streams), then live events (`tsc_ui::HostedEngine`). Back moves the task
streams), then live events (`voelin_ui::HostedEngine`). Back moves the task
to the background instead of finishing the activity; configuration changes
do not recreate it.
- **Voice in the background**: while any session has a voice connection,
@@ -83,7 +83,7 @@ capture, NDK MediaCodec format queries); targetSdk and compileSdk 36.
notification ("In voice on …", Mute or Unmute, Disconnect). Rust drives it
from engine events (`foreground.rs`, `Bridge.setVoiceNotification`). Audio
itself is cpal on AAudio, as on desktop.
- **Sharing the screen**: `tsc_media::capture::default_screen_capture()`
- **Sharing the screen**: `voelin_media::capture::default_screen_capture()`
returns the MediaProjection provider (`capture.rs`) registered at start.
Starting shows the system consent dialog; on consent `ScreenCaptureService`
(type `mediaProjection`) mirrors the display into an `ImageReader` at the
@@ -92,7 +92,7 @@ capture, NDK MediaCodec format queries); targetSdk and compileSdk 36.
`AudioPlaybackCapture` of media, game and unknown usages, 48 kHz stereo
float, only while the projection runs. Ending the projection from the
status bar or the notification closes the capture channels.
- **Watching and encoding**: `tsc_media::Codecs` uses the device's
- **Watching and encoding**: `voelin_media::Codecs` uses the device's
MediaCodec encoders (hardware first) and decoders on Android
([media.md](media.md)).
- **Secrets**: `SecretStore` encrypts each password with AES-256-GCM under a
@@ -113,17 +113,17 @@ Permissions: `INTERNET`, `ACCESS_NETWORK_STATE`, `RECORD_AUDIO`,
| What | How | Status |
|---|---|---|
| `libtsc_android.so` for `aarch64-linux-android` (Slint Android backend with Skia, AAudio, AWS-LC, SQLite, libopus) | `cargo ndk -t arm64-v8a build -p tsc-android` | builds; exports `android_main` and the `Native` methods |
| Debug APK | `./gradlew assembleDebug -Ptsc.abis=arm64-v8a` | builds |
| Engine host replay, voice service policy | unit tests (`cargo test -p tsc-android`) | tested |
| External capture providers, MediaCodec buffer layouts | `tsc-media` unit tests | tested |
| `libvoelin_android.so` for `aarch64-linux-android` (Slint Android backend with Skia, AAudio, AWS-LC, SQLite, libopus) | `cargo ndk -t arm64-v8a build -p voelin-android` | builds; exports `android_main` and the `Native` methods |
| Debug APK | `./gradlew assembleDebug -Pvoelin.abis=arm64-v8a` | builds |
| Engine host replay, voice service policy | unit tests (`cargo test -p voelin-android`) | tested |
| External capture providers, MediaCodec buffer layouts | `voelin-media` unit tests | tested |
| The app on a device: UI, voice in the background, screen sharing, watching, Keystore | manual matrix row IN3 and the Android rows | not run yet (no device or emulator in this environment) |
Known gaps:
- The streams panel of the UI and the stream media pipeline of `tsc-core`
- The streams panel of the UI and the stream media pipeline of `voelin-core`
must build without the desktop media backends on Android (libvpx, X11,
PipeWire): `tsc-media` with `default-features = false` there, so that
PipeWire): `voelin-media` with `default-features = false` there, so that
`Codecs` uses MediaCodec.
- Rotating the device while sharing letterboxes the picture (the virtual
display keeps its size).
+28 -28
View File
@@ -16,9 +16,9 @@ facts constrain it, how the code is organised, and the milestone order.
`respondjoinstreamrequest`, `streamsignaling`, `notifystream*`, ...). See
[protocol-notes/ts6-streaming.md](protocol-notes/ts6-streaming.md).
- `clientinit` must carry a `client_version_sign` signed by TeamSpeak, so the
client reuses known version/signature pairs (`tsctl versions`).
client reuses known version/signature pairs (`voelinctl versions`).
- TeamSpeak 6 servers still accept the TeamSpeak 3 client protocol; verified with
`tsctl` against 6.0.0-beta13.1.
`voelinctl` against 6.0.0-beta13.1.
### What "invisible" means for query clients (verified on 3.13.8 and 6.0.0-beta13.1)
@@ -41,18 +41,18 @@ the admin grants them to the guest query group.
| Feature | Mechanism |
|---|---|
| Server chat | Voice connection: `targetmode=3`. Without one: gateway or own query session (`servernotifyregister event=textserver`) |
| Channel chat without joining | Relay pool (`tsc-observer`): invisible query sessions sit in channels and relay both ways; posts appear as `[Nick] text` |
| Channel chat without joining | Relay pool (`voelin-observer`): invisible query sessions sit in channels and relay both ways; posts appear as `[Nick] text` |
| Voice | tsproto UDP transport, Opus (`opus2`), echo cancellation / noise suppression (sonora), own jitter buffer, cpal / AAudio |
| Invisible presence | Gateway presence stream (snapshot + deltas from query events) or direct query; `channelsubscribeall` when voice-connected |
| Screen share with sound | TS6 stream signalling (`tsc-stream`), str0m WebRTC, per-platform capture and codecs (`tsc-media`) |
| Screen share with sound | TS6 stream signalling (`voelin-stream`), str0m WebRTC, per-platform capture and codecs (`voelin-media`) |
## Workspace layout
```
crates/proto/ vendored tsclientlib (tsproto, tsproto-packets, tsproto-types,
tsproto-structs + declarations, ts-bookkeeping, tsclientlib)
crates/<tsc-*> our crates (table below)
tools/tsctl headless CLI
crates/<voelin-*> our crates (table below)
tools/voelinctl headless CLI
dev/ docker-compose TS3 + TS6 servers, gateway configs
scripts/ it-smoke.sh, own-crates.sh
fuzz/ cargo-fuzz targets
@@ -60,18 +60,18 @@ fuzz/ cargo-fuzz targets
| Crate | Responsibility | State |
|---|---|---|
| `tsc-model` | UI-facing domain model (servers, channels, clients, chat, capabilities), no IO | done |
| `tsc-query` | ServerQuery codec and transports: raw TCP, SSH (russh), HTTP WebQuery | done |
| `tsc-observer` | Presence tracker + chat relay pool over `tsc-query` | done |
| `tsc-gateway-proto`, `tsc-gateway` (`tsgw`) | Companion service for server admins: identity-challenge auth, permission-mirroring authorization, presence stream, chat relay, SQLite history, WebSocket + JSON (`tsgw.v1+json`) | done |
| `tsc-store` | Identities, bookmarks, settings, chat cache, secrets (keyring / Android Keystore) | done |
| `tsc-audio` | Capture/playback, Opus, echo cancellation, resampling, jitter buffer, mixer, VAD/push-to-talk | v0 (no AEC yet) |
| `tsc-stream` | TS6 stream commands, JSON signalling, str0m peer connections, host/STUN candidates, streamer/viewer sessions, frame-source seam | sessions + transport |
| `tsc-core` | Engine: runtime, per-server sessions, merge of voice/gateway/query sources, event bus, command API, audio settings and volumes, streams on TS6; `media` module (capture → encoder → stream, stream → decoder) | done |
| `tsc-ui` | Slint UI and the desktop binary: streams panel, viewer, share dialog, audio / hotkey / codec settings | done (desktop) |
| `tsc-media` | Screen and system-audio capture backends (PipeWire portal, X11, Windows Graphics Capture, Android MediaProjection), video codecs | done (desktop hardware encoders planned; MediaCodec not run on a device yet) |
| `tsc-platform` | Global hotkeys, notifications, paths, crash reports, notices | done |
| `tsc-android` + `android/` | Android library + Gradle/Kotlin app (foreground services for voice and screen capture); see [android.md](android.md) | builds, not yet run on a device |
| `voelin-model` | UI-facing domain model (servers, channels, clients, chat, capabilities), no IO | done |
| `voelin-query` | ServerQuery codec and transports: raw TCP, SSH (russh), HTTP WebQuery | done |
| `voelin-observer` | Presence tracker + chat relay pool over `voelin-query` | done |
| `voelin-gateway-proto`, `voelin-gateway` (`tsgw`) | Companion service for server admins: identity-challenge auth, permission-mirroring authorization, presence stream, chat relay, SQLite history, WebSocket + JSON (`tsgw.v1+json`) | done |
| `voelin-store` | Identities, bookmarks, settings, chat cache, secrets (keyring / Android Keystore) | done |
| `voelin-audio` | Capture/playback, Opus, echo cancellation, resampling, jitter buffer, mixer, VAD/push-to-talk | v0 (no AEC yet) |
| `voelin-stream` | TS6 stream commands, JSON signalling, str0m peer connections, host/STUN candidates, streamer/viewer sessions, frame-source seam | sessions + transport |
| `voelin-core` | Engine: runtime, per-server sessions, merge of voice/gateway/query sources, event bus, command API, audio settings and volumes, streams on TS6; `media` module (capture → encoder → stream, stream → decoder) | done |
| `voelin-ui` | Slint UI and the desktop binary: streams panel, viewer, share dialog, audio / hotkey / codec settings | done (desktop) |
| `voelin-media` | Screen and system-audio capture backends (PipeWire portal, X11, Windows Graphics Capture, Android MediaProjection), video codecs | done (desktop hardware encoders planned; MediaCodec not run on a device yet) |
| `voelin-platform` | Global hotkeys, notifications, paths, crash reports, notices | done |
| `voelin-android` + `android/` | Android library + Gradle/Kotlin app (foreground services for voice and screen capture); see [android.md](android.md) | builds, not yet run on a device |
## Merging sources
@@ -84,7 +84,7 @@ gateway, otherwise a local query relay. UI states: `Offline`,
## Streams
`tsc-stream::Streams` holds the stream state of one TS6 connection without
`voelin-stream::Streams` holds the stream state of one TS6 connection without
doing connection IO: it is fed stream notifications (and failed commands) and
the app's decisions, owns the str0m peers, and queues requests to send plus
events. Inside it, `StreamerSession` runs our stream (one peer per viewer, our
@@ -92,34 +92,34 @@ offer in `respondjoinstreamrequest`), `ViewerSession` one watched stream
(answer through `streamsignaling`), and `StreamDirectory` the streams of our
channel. Its tests drive two instances through a fake relay server.
In `tsc-core` a stream task per voice connection runs `Streams`; the voice task
In `voelin-core` a stream task per voice connection runs `Streams`; the voice task
forwards `MessageEvent`s and sends the requests. Encoders push frames through
the `StreamSink` of `StreamState::Live`; received frames of watched streams go
to `Engine::subscribe_frames`, not the event bus. The audio of watched streams
goes straight to the session's audio thread, which mixes it like a talker
with its own volume (`Command::SetStreamVolume`).
`tsc-core::media` (feature `media`) connects this to `tsc-media`:
`voelin-core::media` (feature `media`) connects this to `voelin-media`:
`Streamer` captures (screen, window, portal or the test pattern, plus system
audio), encodes with the codec of our offer (VP8 by default; the offer carries
only the codec we encode, since every viewer gets the same frames) and Opus,
and feeds the `StreamSink`, honouring keyframe requests. `Viewer` decodes a
watched stream on its own thread (skipping to the next keyframe after losses
and asking for one) and hands pictures to the UI, which keeps only the newest
(`Latest`). `EncodedSource` wraps a `Streamer` as a `tsc-stream::FrameSource`
for `tsctl stream start`; `SyntheticSource` (fake VP8 bytes) remains for
tsc-stream's own tests.
(`Latest`). `EncodedSource` wraps a `Streamer` as a `voelin-stream::FrameSource`
for `voelinctl stream start`; `SyntheticSource` (fake VP8 bytes) remains for
voelin-stream's own tests.
## Milestones
| | Scope | Exit criteria |
|---|---|---|
| **M0** | Vendoring, workspace, `tsctl`, dev servers, CI | Builds on Linux + Windows; smoke test passes on TS3 and TS6 |
| **M0** | Vendoring, workspace, `voelinctl`, dev servers, CI | Builds on Linux + Windows; smoke test passes on TS3 and TS6 |
| M1 | Protocol modernisation: edition 2024, dependency updates, puzzle rewrite (off-thread, progress, cancel), TS6 declarations (`client_is_streaming`, stream commands), fuzzing | Tests green on both servers, clippy clean |
| M2 | Identities/bookmarks store, audio v0 (Opus, jitter buffer), `tsctl voice` | Tone round-trips between two clients on both servers |
| M3 | `tsc-query` (raw/SSH/HTTP) + observer | Invisible presence and relay chat verified |
| M2 | Identities/bookmarks store, audio v0 (Opus, jitter buffer), `voelinctl voice` | Tone round-trips between two clients on both servers |
| M3 | `voelin-query` (raw/SSH/HTTP) + observer | Invisible presence and relay chat verified |
| M4 | Gateway v1 | Presence + channel chat without appearing in the client list, permission denials tested |
| M5 | `tsc-core` + Slint desktop UI (Linux) | Daily use on GNOME, KDE, X11 |
| M5 | `voelin-core` + Slint desktop UI (Linux) | Daily use on GNOME, KDE, X11 |
| M6 | Audio quality, global push-to-talk, Windows parity and packaging | One-hour call without drift or echo |
| M7 | TS6 stream viewer | Watch an official TS6 client's stream |
| M8 | Streamer: capture, system audio, encoders | Official TS6 client watches our 1080p30 stream with sound |
+4 -4
View File
@@ -9,8 +9,8 @@ voice connection ─ Mixer (jitter buffer, Opus decode, per-client volume/mute)
└─ Processor::render (echo canceller reference)
```
The audio thread lives in `tsc-core/src/audio.rs`; the building blocks are in
`tsc-audio`. All user settings are one serde struct, `tsc_audio::AudioSettings`.
The audio thread lives in `voelin-core/src/audio.rs`; the building blocks are in
`voelin-audio`. All user settings are one serde struct, `voelin_audio::AudioSettings`.
## Echo cancellation, noise suppression, gain control
@@ -57,7 +57,7 @@ frame, and the talker is dropped after three in a row), and when the smallest
queue length over the last 255 packets exceeds its spread, it drops every 100th
sample (1 % faster) until the surplus is gone; queues above 0.5 s are truncated.
`crates/tsc-audio/tests/drift.rs` simulates one hour of continuous speech with
`crates/voelin-audio/tests/drift.rs` simulates one hour of continuous speech with
20–60 ms network jitter, reordering and 0.5 % loss, with the sender clock at
+200 and -200 ppm (720 ms of disagreement per hour). Marker frames every 30 s
measure the end-to-end latency:
@@ -88,7 +88,7 @@ Watched streams play through the same mixer under made-up client ids (counting
down from 65535) with their own volume (`SetStreamVolume`).
Push-to-talk works with the button in the window and a global hotkey
(`tsc_platform::HotkeyManager`: the portal on Wayland, XInput2 on X11, a hook on
(`voelin_platform::HotkeyManager`: the portal on Wayland, XInput2 on X11, a hook on
Windows), configurable as e.g. `Ctrl+Shift+T`.
## Devices
+25 -19
View File
@@ -4,30 +4,36 @@ Every platform has installable packages. CI builds them on each run, and the
Dockerfiles in `docker/` build the same kinds of packages on any machine with
Docker. Both use `scripts/package.sh`, so file names and contents match.
The packages hold the app, Voelin. The gateway `tsgw` runs on servers and is
packaged for Linux only, separately. `voelinctl` is a development tool and is
in no package (`cargo run -p voelinctl`).
| Platform | Files | Install |
|---|---|---|
| Linux x86_64 | `tsc-<version>-linux-x86_64.tar.gz` | unpack; `bin/` has `tsc-desktop`, `tsctl`, `tsgw` (prefix layout: `tar -xzf … --strip-components=1 -C ~/.local`) |
| | `tsc-desktop_<version>_amd64.deb` | `sudo apt install ./tsc-desktop_<version>_amd64.deb` (Ubuntu 24.04+, Debian 13+) |
| | `tsc-desktop.flatpak` (CI only) | `flatpak install --user tsc-desktop.flatpak` |
| Windows x86_64 | `tsc-<version>-windows-x86_64.zip` | unpack; `tsc-desktop.exe`, `tsctl.exe`, `tsgw.exe` |
| | `tsc-desktop-<version>-setup.exe` | run it (per-machine install, uninstaller in Settings → Apps) |
| Android | `tsc-<version>-android-debug.apk` | `adb install …` or open it on the phone (arm64-v8a and x86_64) |
| | `tsc-<version>-android-release.apk` | only with signing configured ([release.md](release.md#android-apk-signing)) |
| Linux x86_64 | `voelin-<version>-linux-x86_64.tar.gz` | unpack; `bin/voelin` plus desktop file and icon (prefix layout: `tar -xzf … --strip-components=1 -C ~/.local`) |
| | `voelin_<version>_amd64.deb` | `sudo apt install ./voelin_<version>_amd64.deb` (Ubuntu 24.04+, Debian 13+) |
| | `voelin.flatpak` (CI only) | `flatpak install --user voelin.flatpak` |
| Linux server | `tsgw_<version>_amd64.deb` | `sudo apt install ./tsgw_<version>_amd64.deb`, then configure and start it ([gateway-admin.md](gateway-admin.md#install)) |
| | `tsgw-<version>-linux-x86_64.tar.gz` | unpack; `bin/tsgw`, the systemd unit and the example config |
| | `tsgw-image.tar.gz` (CI only) | `docker load -i tsgw-image.tar.gz` |
| Windows x86_64 | `voelin-<version>-windows-x86_64.zip` | unpack; `voelin.exe` |
| | `voelin-<version>-setup.exe` | run it (per-machine install, uninstaller in Settings → Apps) |
| Android | `voelin-<version>-android-debug.apk` | `adb install …` or open it on the phone (arm64-v8a and x86_64) |
| | `voelin-<version>-android-release.apk` | only with signing configured ([release.md](release.md#android-apk-signing)) |
Each package run also writes `SHA256SUMS-<platform>`. Nothing is code-signed
yet: Windows SmartScreen warns about the installer, and the debug APK is
signed with a debug key (fine for testing, not for the Play Store).
The gateway also runs as a container ([gateway-admin.md](gateway-admin.md)):
CI uploads the image as `tsgw-image.tar.gz` (`docker load -i tsgw-image.tar.gz`,
then `docker run … tsgw:<version>`), or build it with
`docker build -f crates/tsc-gateway/Dockerfile -t tsgw .`.
The gateway's image can also be built directly:
`docker build -f crates/voelin-gateway/Dockerfile -t tsgw .`.
## From CI
`.github/workflows/ci.yml` uploads one artifact per platform on every run:
`tsc-linux-x86_64`, `tsc-windows-x86_64`, `tsc-flatpak-x86_64`,
`tsc-android` and `tsgw-image`. Download them from the run's page (Actions → the run →
`voelin-linux-x86_64` (the app's and the gateway's Linux packages),
`voelin-windows-x86_64`, `voelin-flatpak-x86_64`, `voelin-android` and
`tsgw-image`. Download them from the run's page (Actions → the run →
Artifacts), or with the GitHub CLI:
```sh
@@ -43,8 +49,8 @@ to a **draft** GitHub release, which you review and publish by hand
The Windows packages from CI use the MSVC toolchain and libvpx from vcpkg.
The Android job builds a signed release APK only when the repository has the
signing secrets (`ANDROID_KEYSTORE_BASE64`, `TSC_SIGNING_STORE_PASSWORD`,
`TSC_SIGNING_KEY_ALIAS`, `TSC_SIGNING_KEY_PASSWORD`).
signing secrets (`ANDROID_KEYSTORE_BASE64`, `VOELIN_SIGNING_STORE_PASSWORD`,
`VOELIN_SIGNING_KEY_ALIAS`, `VOELIN_SIGNING_KEY_PASSWORD`).
`.github/workflows/docker.yml` builds the Docker files below weekly, by hand
(Actions → Docker builds → Run workflow) and when they change, and uploads
@@ -68,7 +74,7 @@ BuildKit cache mounts (`docker builder prune` frees them).
| Dockerfile | Builds | Notes |
|---|---|---|
| `docker/linux.Dockerfile` | `.tar.gz` and `.deb` on Ubuntu 24.04 | the binaries need glibc 2.39+ and the libraries the `.deb` lists |
| `docker/linux.Dockerfile` | the app's and the gateway's `.tar.gz` and `.deb` on Ubuntu 24.04 | the binaries need glibc 2.39+ and the libraries the `.deb` lists |
| `docker/windows.Dockerfile` | `.zip` and the NSIS installer | cross-compiled for `x86_64-pc-windows-gnu` with mingw-w64 and a static libvpx; works on Windows 10 and 11 |
| `docker/android.Dockerfile` | debug APK | SDK, NDK and cargo-ndk as in CI; `--build-arg ABIS=arm64-v8a,x86_64,armeabi-v7a` picks the ABIs |
@@ -80,8 +86,8 @@ scripts/docker-build.sh android --build-arg APK=release \
--secret id=keystore,src=release.jks --secret id=signing,src=signing.env
```
For the signed release APK, `signing.env` holds `TSC_SIGNING_STORE_PASSWORD=…`,
`TSC_SIGNING_KEY_ALIAS=…` and `TSC_SIGNING_KEY_PASSWORD=…`. Secrets are not
For the signed release APK, `signing.env` holds `VOELIN_SIGNING_STORE_PASSWORD=…`,
`VOELIN_SIGNING_KEY_ALIAS=…` and `VOELIN_SIGNING_KEY_PASSWORD=…`. Secrets are not
stored in the image or the build cache.
**Behind a proxy:** `scripts/docker-build.sh` passes `HTTPS_PROXY`,
@@ -93,7 +99,7 @@ the proxy is on localhost. If the proxy inspects TLS, set
- **Linux:** the packages from the table above need
`sudo apt install libasound2-dev libfontconfig1-dev libxkbcommon-dev libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev cmake dpkg-dev`,
then `cargo build --release --locked -p tsc-ui -p tsctl -p tsc-gateway`
then `cargo build --release --locked -p voelin-ui -p voelin-gateway`
and `scripts/package.sh linux`.
- **Windows:** [packaging/windows/README.md](../packaging/windows/README.md)
(MSVC, vcpkg libvpx, NSIS), then `bash scripts/package.sh windows` from Git Bash.
+43 -8
View File
@@ -1,9 +1,9 @@
# Running the tsgw gateway
`tsgw` lets users of this client see who is in which channel and read and
`tsgw` lets users of Voelin see who is in which channel and read and
write channel chat **without joining voice**, on a server you administer. It
holds ServerQuery sessions (invisible to normal users of the official clients)
and serves users over a WebSocket (`tsgw.v1+json`, see `crates/tsc-gateway-proto`).
and serves users over a WebSocket (`tsgw.v1+json`, see `crates/voelin-gateway-proto`).
## What users get
@@ -56,17 +56,52 @@ is written to the audit table.
`relay.max_channel_relays` below the server's per-IP connection limit.
Relays count toward a channel's max clients unless their group has
`b_channel_join_ignore_maxclients`.
5. Copy `crates/tsc-gateway/tsgw.example.toml` to `tsgw.toml`, set the query
address and credentials (`TSGW_QUERY_PASSWORD` or `password_file`).
5. Install tsgw ([below](#install)), copy the example config to
`/etc/tsgw/tsgw.toml` and set the query address and credentials
(`TSGW_QUERY_PASSWORD` or `password_file`).
6. Run it behind TLS (Caddy, nginx) and give users the `wss://…/v1` URL.
## Install
tsgw is packaged for Linux servers, separately from the app
([building.md](building.md)): every CI run uploads the packages in the
`voelin-linux-x86_64` artifact and the image as `tsgw-image`, and
`scripts/docker-build.sh linux` builds them locally.
**Debian/Ubuntu** (`tsgw_<version>_amd64.deb`, Ubuntu 24.04+ / Debian 13+).
It installs `/usr/bin/tsgw` and a systemd unit that is not started until
there is a config:
```sh
cargo run --release -p tsc-gateway -- --config tsgw.toml
# or
docker build -f crates/tsc-gateway/Dockerfile -t tsgw .
docker run -v $PWD/tsgw.toml:/etc/tsgw/tsgw.toml -p 7788:7788 tsgw
sudo apt install ./tsgw_<version>_amd64.deb
sudo install -d -m 755 /etc/tsgw
sudo cp /usr/share/doc/tsgw/examples/tsgw.example.toml /etc/tsgw/tsgw.toml
sudoedit /etc/tsgw/tsgw.toml
# The query password, readable by root only (systemd reads it before
# starting tsgw as an unprivileged dynamic user).
echo 'TSGW_QUERY_PASSWORD=…' | sudo install -m 600 /dev/stdin /etc/tsgw/tsgw.env
sudo systemctl enable --now tsgw
journalctl -u tsgw -f
```
The audit database (`path = "tsgw.db"`) ends up in `/var/lib/tsgw`. The unit
(`packaging/linux/tsgw.service`) runs tsgw sandboxed: no write access outside
that directory, network only.
**Other distributions** (`tsgw-<version>-linux-x86_64.tar.gz`): `bin/tsgw`,
the same unit in `lib/systemd/system/` and the example config in
`share/doc/tsgw/`. Copy the binary to `/usr/bin` (or change `ExecStart`) and
the unit to `/etc/systemd/system/`.
**Container** (`tsgw-image.tar.gz`, or build it):
```sh
docker load -i tsgw-image.tar.gz # or: docker build -f crates/voelin-gateway/Dockerfile -t tsgw .
docker run -v $PWD/tsgw.toml:/etc/tsgw/tsgw.toml -e TSGW_QUERY_PASSWORD=… -p 7788:7788 tsgw
```
**From source:** `cargo run --release -p voelin-gateway -- --config tsgw.toml`.
## Visibility
Query clients are not hidden by the server; official clients hide them from
+14 -14
View File
@@ -51,14 +51,14 @@ translated sentence; they stay in English.
## Files
```
crates/tsc-ui/lang/
tsc-ui.pot template, generated
de/LC_MESSAGES/tsc-ui.po one directory per language (gettext locale name)
pt_BR/LC_MESSAGES/tsc-ui.po
crates/voelin-ui/lang/
voelin-ui.pot template, generated
de/LC_MESSAGES/voelin-ui.po one directory per language (gettext locale name)
pt_BR/LC_MESSAGES/voelin-ui.po
```
The file name is the translation domain, which is the crate name
(`tsc-ui`); Slint's build looks for `lang/<lang>/LC_MESSAGES/<crate>.po`.
(`voelin-ui`); Slint's build looks for `lang/<lang>/LC_MESSAGES/<crate>.po`.
## Workflow
@@ -68,21 +68,21 @@ MSYS2 or Git for Windows' bundled tools).
```sh
# 1. Extract the template after changing strings
slint-tr-extractor --package-name tsc-ui crates/tsc-ui/ui/*.slint -o crates/tsc-ui/lang/tsc-ui.pot
slint-tr-extractor --package-name voelin-ui crates/voelin-ui/ui/*.slint -o crates/voelin-ui/lang/voelin-ui.pot
# 2. Update every translation (new strings empty, changed ones fuzzy)
for po in crates/tsc-ui/lang/*/LC_MESSAGES/tsc-ui.po; do
msgmerge --update --backup=none "$po" crates/tsc-ui/lang/tsc-ui.pot
for po in crates/voelin-ui/lang/*/LC_MESSAGES/voelin-ui.po; do
msgmerge --update --backup=none "$po" crates/voelin-ui/lang/voelin-ui.pot
done
# 3. Start a new language
mkdir -p crates/tsc-ui/lang/de/LC_MESSAGES
msginit --no-translator --locale=de --input=crates/tsc-ui/lang/tsc-ui.pot \
--output-file=crates/tsc-ui/lang/de/LC_MESSAGES/tsc-ui.po
mkdir -p crates/voelin-ui/lang/de/LC_MESSAGES
msginit --no-translator --locale=de --input=crates/voelin-ui/lang/voelin-ui.pot \
--output-file=crates/voelin-ui/lang/de/LC_MESSAGES/voelin-ui.po
```
Translators edit the `.po` files (Poedit, Lokalize, or a hosted service
such as Weblate pointed at `crates/tsc-ui/lang`). Fuzzy and untranslated
such as Weblate pointed at `crates/voelin-ui/lang`). Fuzzy and untranslated
entries fall back to English. Run the extraction when strings change and
before each release (string freeze, see [release.md](release.md)). The
template carries a creation date and source line numbers, so CI does not
@@ -91,7 +91,7 @@ translatable yet.
## Bundling and language selection
`crates/tsc-ui/build.rs` compiles the translations into the binary:
`crates/voelin-ui/build.rs` compiles the translations into the binary:
```rust
slint_build::compile_with_config(
@@ -113,7 +113,7 @@ calls `slint::select_bundled_translation("de")` after the window has been
created; `""` or `"en"` selects English. Changing it takes effect
immediately for all `@tr` strings.
The desktop app (tsc-ui) and the Android app share the `.slint` files and
The desktop app (voelin-ui) and the Android app share the `.slint` files and
therefore the translations. Texts outside Slint need their own mechanism:
- Android system texts (foreground service notification, permission
+19 -19
View File
@@ -1,8 +1,8 @@
# Media: frames, codecs and capture (`tsc-media`)
# Media: frames, codecs and capture (`voelin-media`)
`crates/tsc-media` turns screens and system audio into frames, encodes and
`crates/voelin-media` turns screens and system audio into frames, encodes and
decodes video, and converts pixels for rendering. It does no networking:
`tsc-stream` carries the encoded frames (`Peer::write(MediaKind::Video,
`voelin-stream` carries the encoded frames (`Peer::write(MediaKind::Video,
MediaTime::new(frame.pts_90khz, Frequency::NINETY_KHZ), data)`), and received
`MediaFrame`s go to `VideoDecoder::decode`.
@@ -27,7 +27,7 @@ MediaTime::new(frame.pts_90khz, Frequency::NINETY_KHZ), data)`), and received
```rust
let codecs = Codecs::new().with_openh264(OpenH264::find_in(&data_dir)?); // H.264 optional
let mut capture = tsc_media::capture::default_screen_capture()?;
let mut capture = voelin_media::capture::default_screen_capture()?;
let mut frames = capture.start(&SourceId::Monitor(0), &CaptureOptions::default()).await?;
let codec = codecs.pick_encoder(&viewer_codecs).unwrap();
let mut encoder = codecs.new_encoder(codec, EncoderConfig::default())?;
@@ -38,12 +38,12 @@ while let Some(frame) = frames.recv().await {
}
```
## The pipeline in `tsc-core` (`media` module)
## The pipeline in `voelin-core` (`media` module)
Feature `media` of tsc-core builds the module with whatever tsc-media backends
Feature `media` of voelin-core builds the module with whatever voelin-media backends
are enabled (on Android: MediaCodec and the app's capture source);
`media-desktop` adds tsc-media's default backends (libvpx, OpenH264, X11,
PipeWire). The desktop app and tsctl use `media-desktop`, the Android app
`media-desktop` adds voelin-media's default backends (libvpx, OpenH264, X11,
PipeWire). The desktop app and voelinctl use `media-desktop`, the Android app
`media`. Codecs are always chosen through `Codecs`, so each build uses its own.
```
@@ -72,7 +72,7 @@ viewer: Engine::subscribe_frames ─ VideoPipeline (thread) ─ VideoDecoder
sequence header OBU).
- `Viewer` feeds a `VideoPipeline` from the engine and sends
`RequestStreamKeyframe`; `LocalPreview` runs capture → encoder → decoder
without a server (the desktop app's `TSC_DEMO_STREAM`).
without a server (the desktop app's `VOELIN_DEMO_STREAM`).
- The audio of watched streams does not go through this module: the session
hands the Opus frames to its audio thread, which plays them through the
jitter buffer and mixer under a made-up client id, with its own volume.
@@ -167,7 +167,7 @@ Notes:
our memfd (`capture/x11/shm.rs`).
- Portal: `start` needs a tokio runtime (zbus runs on it) and may show the
desktop's picker. Choices persist with `PersistMode::ExplicitlyRevoked`: store
`PortalCapture::restore_token()` (e.g. in `tsc-store` settings) and pass it to
`PortalCapture::restore_token()` (e.g. in `voelin-store` settings) and pass it to
`PortalCapture::with_restore_token` next time. The cursor is embedded when
the portal supports it. Only shared-memory buffers (BGRx/BGRA/RGBx/RGBA) are
negotiated; DMA-BUF import is a TODO. Without a session bus or portal,
@@ -188,12 +188,12 @@ Linux (Debian/Ubuntu packages): `libvpx-dev` (feature `vpx`),
PipeWire bindings run bindgen), `pkg-config`, and `libdav1d-dev` for
`--features av1`. X11 capture is pure Rust (x11rb) and needs no packages.
Tests of X11 capture need an X server: `xvfb`, run with `xvfb-run -a cargo
test -p tsc-media` (skipped without `DISPLAY`).
test -p voelin-media` (skipped without `DISPLAY`).
Windows: libvpx is not found through pkg-config there. Install it (e.g.
`vcpkg install libvpx:x64-windows`) and set `VPX_LIB_DIR`, `VPX_INCLUDE_DIR`
and `VPX_VERSION`, or build without the `vpx` feature. The Windows capture
code is type-checked on Linux (`cargo clippy -p tsc-media --target
code is type-checked on Linux (`cargo clippy -p voelin-media --target
x86_64-pc-windows-gnu --no-default-features --features openh264`) but has not
run on Windows yet.
@@ -218,7 +218,7 @@ run on Windows yet.
|---|---|---|
| Frame validation, YUV ↔ RGB (values, NV12, odd sizes, strides) | unit tests | tested |
| VP8 / VP9 encode → decode (PSNR > 30 dB, rectangle colour, forced keyframes, bitrate change, resolution change) | unit tests, `tests/codec_roundtrip.rs` | tested |
| H.264 with Cisco's 2.6.0 library (PSNR, Constrained High `profile_idc` 100, Baseline 66) | `tests/openh264.rs` with `TSC_OPENH264_LIB` | tested locally, skipped without the library |
| H.264 with Cisco's 2.6.0 library (PSNR, Constrained High `profile_idc` 100, Baseline 66) | `tests/openh264.rs` with `VOELIN_OPENH264_LIB` | tested locally, skipped without the library |
| OpenH264 download, SHA-256 check, reuse | `tests/openh264.rs -- --ignored` | tested locally (network) |
| H.264 library missing / unknown file | unit + integration tests | tested |
| AV1 decoder construction, garbage input | unit test (`--features av1`) | tested; no AV1 stream decoded (no encoder available) |
@@ -227,12 +227,12 @@ run on Windows yet.
| Portal capture, PipeWire video and audio streams | – | compiles only (no portal or PipeWire daemon here) |
| Windows Graphics Capture, WASAPI | – | type-checked for `x86_64-pc-windows-gnu` only |
| Hardware encoders | – | stubs |
| Test pattern → VP8 → decoder, rectangle position and colour | `tsc-core` `media::tests::local_preview_decodes_the_pattern` | tested |
| Test pattern → two engine stream tasks → str0m peers on loopback → decoder | `tsc-core` `stream::tests::test_pattern_through_stream_tasks` | tested |
| Stream audio (RTP time → jitter buffer ids, volume, end) | `tsc-core` `audio::tests::stream_audio_with_volume`, stream task test | tested |
| The same through the TeamSpeak 6 server | `tsc-core/tests/media_live.rs` (`TSC_LIVE=1`), `tsctl stream start --synthetic` / `watch --expect-frames` | tested against 6.0.0-beta13.1 |
| X11 monitor capture → VP8 → server → decoder | `tsctl stream start --source x11` under Xvfb | tested manually (debug build: about 8 fps at 1400×900) |
| Desktop app watching and sharing | Xvfb, `TSC_AUTOWATCH` / `TSC_AUTOSHARE` against tsctl, screenshots | tested manually |
| Test pattern → VP8 → decoder, rectangle position and colour | `voelin-core` `media::tests::local_preview_decodes_the_pattern` | tested |
| Test pattern → two engine stream tasks → str0m peers on loopback → decoder | `voelin-core` `stream::tests::test_pattern_through_stream_tasks` | tested |
| Stream audio (RTP time → jitter buffer ids, volume, end) | `voelin-core` `audio::tests::stream_audio_with_volume`, stream task test | tested |
| The same through the TeamSpeak 6 server | `voelin-core/tests/media_live.rs` (`VOELIN_LIVE=1`), `voelinctl stream start --synthetic` / `watch --expect-frames` | tested against 6.0.0-beta13.1 |
| X11 monitor capture → VP8 → server → decoder | `voelinctl stream start --source x11` under Xvfb | tested manually (debug build: about 8 fps at 1400×900) |
| Desktop app watching and sharing | Xvfb, `VOELIN_AUTOWATCH` / `VOELIN_AUTOSHARE` against voelinctl, screenshots | tested manually |
| External capture providers (start, refusal, end of capture, default selection) | unit tests | tested |
| MediaCodec buffer layouts (I420, NV12 with padding, `MediaImage2` NV21, crop) | unit tests (`codec::image_layout`) | tested |
| MediaCodec encoders and decoders | – | compiles for `aarch64-linux-android` only (no device or emulator here) |
+8 -8
View File
@@ -7,7 +7,7 @@ capture teaches something new.
## Legacy protocol on TS6 servers
- **Confirmed** (tsctl, 6.0.0-beta13.1, 2026-09-25): the TS3 client protocol
- **Confirmed** (voelinctl, 6.0.0-beta13.1, 2026-09-25): the TS3 client protocol
connects (`initivexpand2` license chain with the TS5-server block type),
channel tree, server chat and channel chat work. Client version: the vendored
default `Windows_3_X_X__1`.
@@ -19,7 +19,7 @@ capture teaches something new.
(28 characters), TeamSpeak 6 uses `base64(SHA256(omega))` (44 characters),
where omega is the base64 public key string. The same identity therefore has
a different `client_unique_identifier` on each server generation
(`tsc-gateway-proto::UniqueIds`).
(`voelin-gateway-proto::UniqueIds`).
- **Confirmed**: TS6 has no raw ServerQuery port; SSH query on 10022 and HTTP
WebQuery on 10080 (HTTPS 10443).
- **Reported**: beta13 made the Init1 puzzle difficulty adaptive to the server's
@@ -64,7 +64,7 @@ candidates come back through `streamsignaling` / `notifystreamsignaling`.
### Probe results (confirmed, 6.0.0-beta13.1, default permissions, 2026-09-25)
Sent with `tsctl connect 127.0.0.1:9988 raw '<command>'` as a plain guest:
Sent with `voelinctl connect 127.0.0.1:9988 raw '<command>'` as a plain guest:
| Command | Result |
|---|---|
@@ -104,7 +104,7 @@ server binary against a live stream (`is_remove` matches the
### End-to-end stream (confirmed, 6.0.0-beta13.1, 2026-09-25)
`crates/tsc-stream/tests/live_ts6.rs` runs a whole stream between two of our
`crates/voelin-stream/tests/live_ts6.rs` runs a whole stream between two of our
clients through the server, with str0m on both ends:
```
@@ -177,18 +177,18 @@ cannot discover the ids of unknown streams), `updatestream` (`stream_id`,
`initserver` and `notifycliententerview` carry `client_is_streaming`, but no
stream id, and the server does not send `notifystreamstarted` for running
streams to a client that connects later: a `tsctl stream list` started while
streams to a client that connects later: a `voelinctl stream list` started while
the desktop app streamed printed only "id not announced", while one connected
before the stream started got the id. Entering the channel later was not
probed separately. `tsctl stream list` shows such streamers as "id not
announced"; `tsctl stream watch --id <uuid>` can still join when the streamer
probed separately. `voelinctl stream list` shows such streamers as "id not
announced"; `voelinctl stream watch --id <uuid>` can still join when the streamer
is known (`--streamer-nick`, or the only other client streaming). The desktop
app lists them as streaming but not watchable. The smoke test starts the
viewer first. How the official client learns these ids is open.
### WebRTC interop with Chromium (confirmed, Chromium 141, 2026-09-26)
`crates/tsc-stream/tests/browser_interop.rs` (`TSC_INTEROP=1`, see
`crates/voelin-stream/tests/browser_interop.rs` (`VOELIN_INTEROP=1`, see
`tests/interop/README.md`) runs our str0m peers against headless Chromium's
libwebrtc, the stack the official client is built on:
+26 -26
View File
@@ -1,19 +1,18 @@
# Releasing
How a release is versioned, built, signed and checked. The product name and
app id are still placeholders (see [packaging/README.md](../packaging/README.md));
rename them before the first public release, since the app id cannot change
afterwards on Flathub or Google Play.
How a release is versioned, built, signed and checked. The app id
`io.github.faumaray.Voelin` ([packaging/README.md](../packaging/README.md))
cannot change after the first release on Flathub or Google Play.
## Versioning
- One version for the apps: `version` of `crates/tsc-ui` (desktop; the
installer and the About page read it), `crates/tsc-android` and the
- One version for the apps: `version` of `crates/voelin-ui` (desktop; the
installer and the About page read it), `crates/voelin-android` and the
Android app's `versionName`. Semantic versioning; before 1.0 a minor bump
may break settings or the gateway protocol, and the changelog says so.
- Android `versionCode` must grow with every upload:
`major * 1000000 + minor * 1000 + patch` (0.2.3 is 2003).
- The gateway `tsgw` (`crates/tsc-gateway`) is versioned on its own, since
- The gateway `tsgw` (`crates/voelin-gateway`) is versioned on its own, since
server admins update it separately. Its wire protocol is versioned in the
WebSocket subprotocol (`tsgw.v1+json`); a breaking change needs `v2` and a
period in which the gateway serves both.
@@ -28,7 +27,7 @@ afterwards on Flathub or Google Play.
change a user or server admin notices adds a line under `Unreleased`
(Added / Changed / Fixed / Removed / Security). At release the section gets
the version and date, and its highlights also go into the `<releases>` entry
of `packaging/linux/io.github.faumaray.TsClient.metainfo.xml` (shown by
of `packaging/linux/io.github.faumaray.Voelin.metainfo.xml` (shown by
software centers and Flathub). Release notes also state the TeamSpeak server
versions the release was tested against (TS3 and TS6 from
`dev/docker-compose.yml`).
@@ -36,7 +35,7 @@ versions the release was tested against (TS3 and TS6 from
## Third-party notices
`THIRD_PARTY_NOTICES.md` lists the licenses of everything compiled into the
apps. It is shown in the About page (`tsc_platform::notices::text()`) and
apps. It is shown in the About page (`voelin_platform::notices::text()`) and
shipped in every package. It is generated, never edited:
```sh
@@ -74,7 +73,7 @@ are written to `$RUNNER_TEMP` in the job and deleted at its end.
### Windows (Authenticode)
Unsigned executables trigger SmartScreen warnings; signed ones build
reputation with the publisher's certificate. Sign `tsc-desktop.exe` first,
reputation with the publisher's certificate. Sign `voelin.exe` first,
then build the installer with `/DSIGN=...`, which signs the installer and the
uninstaller it writes (see [packaging/windows/README.md](../packaging/windows/README.md)).
Always timestamp (`/tr ... /td SHA256`), so signatures stay valid after the
@@ -92,7 +91,7 @@ Options for the certificate:
# metadata.json: {"Endpoint": "https://<region>.codesigning.azure.net",
# "CodeSigningAccountName": "<account>", "CertificateProfileName": "<profile>"}
signtool sign /v /fd SHA256 /tr http://timestamp.acs.microsoft.com /td SHA256 `
/dlib Azure.CodeSigning.Dlib.dll /dmdf metadata.json target\release\tsc-desktop.exe
/dlib Azure.CodeSigning.Dlib.dll /dmdf metadata.json target\release\voelin.exe
```
In GitHub Actions, `azure/trusted-signing-action` does the same with a
@@ -116,7 +115,7 @@ the installer and `uninstall.exe` after installing.
and `... repo`, `appstreamcli validate` on the metainfo, add screenshots
and the release entry to the metainfo. Flathub reviews names and branding:
the app must not look like an official TeamSpeak product.
- For our own releases (GitHub): a tarball of `tsc-desktop` with the desktop
- For our own releases (GitHub): a tarball of `voelin` with the desktop
file, metainfo, icon and notices, and optionally a Flatpak bundle
(`flatpak build-bundle --gpg-sign=<key> ...`). Publish `SHA256SUMS` and
sign it (`gpg --detach-sign` or minisign) with a key whose fingerprint is
@@ -128,20 +127,20 @@ APKs and app bundles are signed with a keystore kept outside the
repository; losing it means existing installs can no longer be updated.
- Create it once:
`keytool -genkeypair -v -keystore tsc-release.jks -alias tsc -keyalg RSA -keysize 4096 -validity 10000`,
`keytool -genkeypair -v -keystore voelin-release.jks -alias voelin -keyalg RSA -keysize 4096 -validity 10000`,
and back it up (two offline copies, password in a password manager).
- The Gradle build reads the keystore path, alias and passwords from Gradle
properties or environment variables (`~/.gradle/gradle.properties`, CI
secrets), never from files in the repository: `tsc.signing.storeFile`,
`tsc.signing.storePassword`, `tsc.signing.keyAlias`,
`tsc.signing.keyPassword`, or `TSC_SIGNING_STORE_FILE`,
`TSC_SIGNING_STORE_PASSWORD`, `TSC_SIGNING_KEY_ALIAS`,
`TSC_SIGNING_KEY_PASSWORD` ([android.md](android.md)). Without them it
secrets), never from files in the repository: `voelin.signing.storeFile`,
`voelin.signing.storePassword`, `voelin.signing.keyAlias`,
`voelin.signing.keyPassword`, or `VOELIN_SIGNING_STORE_FILE`,
`VOELIN_SIGNING_STORE_PASSWORD`, `VOELIN_SIGNING_KEY_ALIAS`,
`VOELIN_SIGNING_KEY_PASSWORD` ([android.md](android.md)). Without them it
builds unsigned or debug-signed artifacts only.
- CI: the `android` job signs a release APK when the repository has the
secrets `ANDROID_KEYSTORE_BASE64` (`base64 -w0 tsc-release.jks`),
`TSC_SIGNING_STORE_PASSWORD`, `TSC_SIGNING_KEY_ALIAS` and
`TSC_SIGNING_KEY_PASSWORD`; the keystore is decoded to `$RUNNER_TEMP` and
secrets `ANDROID_KEYSTORE_BASE64` (`base64 -w0 voelin-release.jks`),
`VOELIN_SIGNING_STORE_PASSWORD`, `VOELIN_SIGNING_KEY_ALIAS` and
`VOELIN_SIGNING_KEY_PASSWORD`; the keystore is decoded to `$RUNNER_TEMP` and
removed afterwards. Check with `apksigner verify --print-certs app-release.apk`.
- Google Play: use Play App Signing; our keystore is then the upload key
(it can be reset through Play support if lost). F-Droid builds and signs
@@ -163,16 +162,17 @@ Before tagging:
version, results committed; failures are fixed or listed as known issues.
5. Translations: `.pot` regenerated and `.po` files merged
([i18n.md](i18n.md)); string freeze announced a week before.
6. Versions bumped (`crates/tsc-ui`, `crates/tsc-android`, Android
`versionName` / `versionCode`, `tsc-gateway` if it changed),
6. Versions bumped (`crates/voelin-ui`, `crates/voelin-android`, Android
`versionName` / `versionCode`, `voelin-gateway` if it changed),
`Cargo.lock` updated, changelog and metainfo `<release>` written.
Release:
7. Tag `v<version>` (signed) on the release commit and push it.
8. The tag's CI run builds every package ([building.md](building.md)): Linux
tarball and `.deb`, Flatpak bundle, Windows zip and installer, Android APKs
(signed when the secrets are set), the gateway image; its `release` job
8. The tag's CI run builds every package ([building.md](building.md)): the
app's Linux tarball and `.deb`, Flatpak bundle, Windows zip and installer
and Android APKs (signed when the secrets are set), and the gateway's
Linux tarball, `.deb` and image; its `release` job
attaches them with a `SHA256SUMS` to a draft GitHub release. Sign the
Windows executable and installer, and an AAB for Google Play, by hand
until CI has the certificates.
+5 -5
View File
@@ -159,7 +159,7 @@ noted.
no Rust toolchain): SmartScreen and UAC show the publisher of the
signature, the app starts from the Start menu, an update over the
previous version keeps the settings, uninstall from Settings > Apps
removes the files, shortcut and registry key and keeps `%APPDATA%\tsc`;
removes the files, shortcut and registry key and keeps `%APPDATA%\voelin`;
`uninstall.exe /S` works too.
- **IN3** Android APK: install, update over the previous version (same
signature, data kept), uninstall.
@@ -177,11 +177,11 @@ noted.
- **GE1** About page: the AboutSlint widget, the OpenH264 attribution and
the full third-party notices (scrollable) are shown.
- **GE2** Crash reports: with reports enabled, start the app with
`TSC_TEST_CRASH=1`: it exits with a panic and, on the next start, offers
`VOELIN_TEST_CRASH=1`: it exits with a panic and, on the next start, offers
the report (open folder, delete). With reports disabled nothing is
written. Reports are in `~/.local/state/tsc/crash-reports` (Flatpak:
`~/.var/app/<app id>/.local/state/tsc/crash-reports`) or
`%LOCALAPPDATA%\tsc\crash-reports`.
written. Reports are in `~/.local/state/voelin/crash-reports` (Flatpak:
`~/.var/app/<app id>/.local/state/voelin/crash-reports`) or
`%LOCALAPPDATA%\voelin\crash-reports`.
- **GE3** Saved passwords survive a restart (GNOME Keyring, KWallet, Windows
Credential Manager, Android Keystore); without a keyring the app warns
and keeps them for the session only.