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 fa9e626c5b
commit e050148a32
197 files changed
+1357 -1210

No files matched your search

+16 -10
View File
@@ -1,19 +1,24 @@
# Packaging
The product name is not decided yet: `TS Client` and the app id
`io.github.faumaray.TsClient` are placeholders (also in
`tsc_platform::{APP_NAME, APP_ID}`); rename them everywhere together.
The product is **Voelin**, with the app id `io.github.faumaray.Voelin` (also in
`voelin_platform::{APP_NAME, APP_ID}`). The app id names the desktop file,
metainfo, icon, Flatpak and Android app, and cannot change once published.
| Path | What |
|---|---|
| `linux/` | Desktop file, AppStream metainfo and a placeholder icon, named by app id |
| `flatpak/io.github.faumaray.TsClient.yml` | Flatpak manifest |
| `linux/` | Desktop file, AppStream metainfo and icon, named by app id; `tsgw.service`, the gateway's systemd unit ([gateway-admin.md](../docs/gateway-admin.md#install)) |
| `flatpak/io.github.faumaray.Voelin.yml` | Flatpak manifest |
| `windows/` | NSIS installer and how to build and sign on Windows ([README](windows/README.md)) |
`scripts/package.sh` builds the packages from these ([docs/building.md](../docs/building.md)):
the app for Linux, Windows and Android, and the gateway `tsgw` for Linux servers
only, as its own package.
Every package also carries `THIRD_PARTY_NOTICES.md` (generated by
`scripts/notices.sh`, see [docs/release.md](../docs/release.md)): Flatpak in
`/app/share/licenses/<app id>/`, the Windows installer next to the executable,
the CI artifacts in the archive. The app shows the same text in its About page.
the `.deb` files in `/usr/share/doc/<package>/`, the archives in `share/doc/`.
The app shows the same text in its About page.
## Flatpak
@@ -27,8 +32,8 @@ python3 flatpak-cargo-generator.py Cargo.lock -o packaging/flatpak/cargo-sources
flatpak install flathub org.freedesktop.Platform//25.08 org.freedesktop.Sdk//25.08 \
org.freedesktop.Sdk.Extension.rust-stable//25.08 org.freedesktop.Sdk.Extension.llvm20//25.08
flatpak-builder --user --install --force-clean build-flatpak packaging/flatpak/io.github.faumaray.TsClient.yml
flatpak run io.github.faumaray.TsClient
flatpak-builder --user --install --force-clean build-flatpak packaging/flatpak/io.github.faumaray.Voelin.yml
flatpak run io.github.faumaray.Voelin
```
Regenerate `cargo-sources.json` whenever `Cargo.lock` changes. Inside the build
@@ -44,5 +49,6 @@ notifications and the Secret Service. Push-to-talk (GlobalShortcuts) and screen
capture (ScreenCast) go through portals and need no permission.
Desktops match windows to the desktop file (taskbar icon, portal permissions) by
X11 `WM_CLASS`, which is the binary name `tsc-desktop` (hence `StartupWMClass`),
and on Wayland by the window's app id, which the app should set to the app id.
the window's app id on Wayland and its X11 `WM_CLASS` class. The app sets both
to the app id (`slint::set_xdg_app_id`), which is the desktop file's name and
its `StartupWMClass`.
@@ -1,6 +1,6 @@
# Flatpak manifest for the desktop app. See packaging/README.md for how to
# build it. The app id is a placeholder until the product has a name.
id: io.github.faumaray.TsClient
# build it.
id: io.github.faumaray.Voelin
runtime: org.freedesktop.Platform
runtime-version: "25.08"
sdk: org.freedesktop.Sdk
@@ -8,7 +8,7 @@ sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
# libclang for bindgen (the PipeWire bindings); the SDK has none.
- org.freedesktop.Sdk.Extension.llvm20
command: tsc-desktop
command: voelin
finish-args:
- --share=network
@@ -35,21 +35,21 @@ build-options:
append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm20/bin
prepend-ld-library-path: /usr/lib/sdk/llvm20/lib
env:
CARGO_HOME: /run/build/tsc/cargo
CARGO_HOME: /run/build/voelin/cargo
CARGO_NET_OFFLINE: "true"
LIBCLANG_PATH: /usr/lib/sdk/llvm20/lib
modules:
- name: tsc
- name: voelin
buildsystem: simple
build-commands:
- cargo --offline build --release --locked -p tsc-ui
- install -Dm755 target/release/tsc-desktop -t /app/bin/
- install -Dm644 packaging/linux/io.github.faumaray.TsClient.desktop -t /app/share/applications/
- install -Dm644 packaging/linux/io.github.faumaray.TsClient.metainfo.xml -t /app/share/metainfo/
- install -Dm644 packaging/linux/io.github.faumaray.TsClient.svg -t /app/share/icons/hicolor/scalable/apps/
- cargo --offline build --release --locked -p voelin-ui
- install -Dm755 target/release/voelin -t /app/bin/
- install -Dm644 packaging/linux/io.github.faumaray.Voelin.desktop -t /app/share/applications/
- install -Dm644 packaging/linux/io.github.faumaray.Voelin.metainfo.xml -t /app/share/metainfo/
- install -Dm644 packaging/linux/io.github.faumaray.Voelin.svg -t /app/share/icons/hicolor/scalable/apps/
# Also shown in the app's About page.
- install -Dm644 THIRD_PARTY_NOTICES.md -t /app/share/licenses/io.github.faumaray.TsClient/
- install -Dm644 THIRD_PARTY_NOTICES.md -t /app/share/licenses/io.github.faumaray.Voelin/
sources:
- type: dir
path: ../..
@@ -1,11 +1,11 @@
[Desktop Entry]
Type=Application
Name=TS Client
Name=Voelin
Comment=Voice chat, text chat and screen sharing
Exec=tsc-desktop
Icon=io.github.faumaray.TsClient
Exec=voelin
Icon=io.github.faumaray.Voelin
Terminal=false
Categories=Network;Chat;InstantMessaging;AudioVideo;
Keywords=voice;chat;voip;push-to-talk;
StartupNotify=true
StartupWMClass=tsc-desktop
StartupWMClass=io.github.faumaray.Voelin
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- AppStream metadata template. The name and app id are placeholders until
the product has a name. -->
<!-- AppStream metadata for Voelin. -->
<component type="desktop-application">
<id>io.github.faumaray.TsClient</id>
<id>io.github.faumaray.Voelin</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT OR Apache-2.0</project_license>
<name>TS Client</name>
<name>Voelin</name>
<summary>Voice chat, text chat and screen sharing</summary>
<description>
<p>
@@ -19,9 +18,9 @@
<li>Per-user volume</li>
</ul>
</description>
<launchable type="desktop-id">io.github.faumaray.TsClient.desktop</launchable>
<launchable type="desktop-id">io.github.faumaray.Voelin.desktop</launchable>
<provides>
<binary>tsc-desktop</binary>
<binary>voelin</binary>
</provides>
<url type="homepage">https://github.com/Faumaray/teamspeak_client_rs</url>
<url type="bugtracker">https://github.com/Faumaray/teamspeak_client_rs/issues</url>
+45
View File
@@ -0,0 +1,45 @@
# systemd unit for tsgw, the Voelin gateway (docs/gateway-admin.md).
#
# Write /etc/tsgw/tsgw.toml (example in /usr/share/doc/tsgw/examples), put the
# query password in /etc/tsgw/tsgw.env as TSGW_QUERY_PASSWORD=… (mode 600),
# then: systemctl enable --now tsgw. State (tsgw.db) is kept in /var/lib/tsgw.
[Unit]
Description=tsgw, the Voelin gateway for TeamSpeak servers
Documentation=https://github.com/Faumaray/teamspeak_client_rs/blob/main/docs/gateway-admin.md
After=network-online.target
Wants=network-online.target
ConditionPathExists=/etc/tsgw/tsgw.toml
[Service]
ExecStart=/usr/bin/tsgw --config /etc/tsgw/tsgw.toml
# Read by systemd before dropping privileges, so it can stay root-only.
EnvironmentFile=-/etc/tsgw/tsgw.env
DynamicUser=yes
StateDirectory=tsgw
WorkingDirectory=/var/lib/tsgw
Restart=on-failure
RestartSec=5
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectControlGroups=yes
ProtectClock=yes
ProtectHostname=yes
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=yes
RestrictRealtime=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
CapabilityBoundingSet=
UMask=0077
[Install]
WantedBy=multi-user.target
+11 -10
View File
@@ -1,15 +1,16 @@
# Windows build and installer
CI (`package-windows` in `.github/workflows/ci.yml`) builds `tsc-desktop.exe`,
`tsctl.exe` and `tsgw.exe` on `windows-2025` and uploads the zip and the
installer as the `tsc-windows-x86_64` artifact. Nothing is signed there.
CI (`package-windows` in `.github/workflows/ci.yml`) builds `voelin.exe` on
`windows-2025` and uploads the zip and the installer as the
`voelin-windows-x86_64` artifact. Nothing is signed there. The gateway `tsgw`
is for servers and packaged for Linux only.
`docker/windows.Dockerfile` cross-compiles the same packages on Linux
([docs/building.md](../../docs/building.md)).
## Build
Needs the MSVC build tools, CMake (bundled libopus), NASM (assembly of
`aws-lc-sys`, used by the WebRTC stack) and libvpx (video, `tsc-media`):
`aws-lc-sys`, used by the WebRTC stack) and libvpx (video, `voelin-media`):
```powershell
winget install NASM.NASM Kitware.CMake NSIS.NSIS
@@ -21,14 +22,14 @@ $env:VPX_INCLUDE_DIR = "$vpx\include"
$env:VPX_VERSION = "1.15.2" # what `vcpkg list libvpx` shows
$env:VPX_STATIC = "1"
cargo build --release --locked -p tsc-ui
cargo build --release --locked -p voelin-ui
makensis /DVERSION=0.1.0 packaging\windows\installer.nsi
```
This gives `target\release\tsc-desktop.exe` and
`packaging\windows\tsc-desktop-0.1.0-setup.exe`. The installer puts the app in
`Program Files\TS Client`, adds a Start menu shortcut and an uninstaller; user
data stays in `%APPDATA%\tsc`.
This gives `target\release\voelin.exe` and
`packaging\windows\voelin-0.1.0-setup.exe`. The installer puts the app in
`Program Files\Voelin`, adds a Start menu shortcut and an uninstaller; user
data stays in `%APPDATA%\voelin`.
The executable uses the dynamic MSVC runtime (`VCRUNTIME140.dll`, present on most
systems). To drop that dependency build with
@@ -42,7 +43,7 @@ it, then the installer and the uninstaller it writes (NSIS 3.08+ runs the `SIGN`
command on both):
```powershell
signtool sign /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 /f cert.pfx /p $env:CERT_PASSWORD target\release\tsc-desktop.exe
signtool sign /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 /f cert.pfx /p $env:CERT_PASSWORD target\release\voelin.exe
makensis /DVERSION=0.1.0 "/DSIGN=signtool sign /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 /f cert.pfx /p $env:CERT_PASSWORD %1" packaging\windows\installer.nsi
```
+8 -9
View File
@@ -1,14 +1,13 @@
; NSIS installer for the desktop app (tsc-desktop.exe). See README.md.
; NSIS installer for the desktop app (voelin.exe). See README.md.
;
; makensis /DVERSION=0.1.0 packaging\windows\installer.nsi
;
; Paths are relative to this file. Optional defines:
; BINARY the executable (default ..\..\target\release\tsc-desktop.exe)
; BINARY the executable (default ..\..\target\release\voelin.exe)
; OUTDIR where the installer goes (default: next to this file)
; SIGN a signing command; "%1" is replaced by the file to sign, e.g.
; /DSIGN="signtool sign /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 /a %1"
;
; The product name and app id are placeholders until the product has a name.
Unicode true
SetCompressor /SOLID lzma
@@ -17,16 +16,16 @@ SetCompressor /SOLID lzma
!define VERSION "0.1.0"
!endif
!ifndef BINARY
!define BINARY "..\..\target\release\tsc-desktop.exe"
!define BINARY "..\..\target\release\voelin.exe"
!endif
!ifndef OUTDIR
!define OUTDIR "."
!endif
!define APP_NAME "TS Client"
!define APP_ID "io.github.faumaray.TsClient"
!define APP_NAME "Voelin"
!define APP_ID "io.github.faumaray.Voelin"
!define PUBLISHER "Faumaray"
!define EXE "tsc-desktop.exe"
!define EXE "voelin.exe"
!define UNINSTALL_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_ID}"
!ifdef SIGN
@@ -36,7 +35,7 @@ SetCompressor /SOLID lzma
!endif
Name "${APP_NAME}"
OutFile "${OUTDIR}\tsc-desktop-${VERSION}-setup.exe"
OutFile "${OUTDIR}\voelin-${VERSION}-setup.exe"
InstallDir "$PROGRAMFILES64\${APP_NAME}"
InstallDirRegKey HKLM "${UNINSTALL_KEY}" "InstallLocation"
RequestExecutionLevel admin
@@ -79,7 +78,7 @@ Section "Install"
SectionEnd
Section "Uninstall"
; User data in %APPDATA%\tsc (identities, bookmarks, history) is kept.
; User data in %APPDATA%\voelin (identities, bookmarks, history) is kept.
Delete "$INSTDIR\${EXE}"
Delete "$INSTDIR\THIRD_PARTY_NOTICES.md"
Delete "$INSTDIR\uninstall.exe"