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

@@ -1,5 +1,5 @@
[package]
name = "tsctl"
name = "voelinctl"
version = "0.1.0"
description = "Headless command-line client for TeamSpeak 3/6 servers, used for development and integration tests."
edition.workspace = true
@@ -21,16 +21,16 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tsclientlib = { path = "../../crates/proto/tsclientlib" }
tsproto-packets = { path = "../../crates/proto/tsproto-packets" }
tsc-model = { path = "../../crates/tsc-model" }
tsc-query = { path = "../../crates/tsc-query" }
tsc-observer = { path = "../../crates/tsc-observer" }
tsc-audio = { path = "../../crates/tsc-audio", default-features = false }
voelin-model = { path = "../../crates/voelin-model" }
voelin-query = { path = "../../crates/voelin-query" }
voelin-observer = { path = "../../crates/voelin-observer" }
voelin-audio = { path = "../../crates/voelin-audio", default-features = false }
# The stream media pipeline (capture, VP8, decoding), without audio devices.
tsc-core = { path = "../../crates/tsc-core", default-features = false, features = ["media-desktop"] }
tsc-stream = { path = "../../crates/tsc-stream" }
voelin-core = { path = "../../crates/voelin-core", default-features = false, features = ["media-desktop"] }
voelin-stream = { path = "../../crates/voelin-stream" }
tokio-tungstenite = "0.30"
futures-util = "0.3.34"
tsc-gateway-proto = { path = "../../crates/tsc-gateway-proto" }
voelin-gateway-proto = { path = "../../crates/voelin-gateway-proto" }
[lints]
workspace = true
@@ -1,4 +1,4 @@
//! `tsctl gateway`: talk to a tsgw gateway as a user.
//! `voelinctl gateway`: talk to a tsgw gateway as a user.
use std::path::PathBuf;
use std::time::Duration;
@@ -9,15 +9,15 @@ use futures_util::{SinkExt, StreamExt};
use tokio::time::{Instant, timeout_at};
use tokio_tungstenite::tungstenite::Message;
use tokio_tungstenite::tungstenite::client::IntoClientRequest;
use tsc_gateway_proto::{ClientMsg, Envelope, ServerMsg, sign_challenge};
use tsc_model::{ChatTarget, Presence};
use voelin_gateway_proto::{ClientMsg, Envelope, ServerMsg, sign_challenge};
use voelin_model::{ChatTarget, Presence};
#[derive(Args, Debug, Clone)]
pub struct GatewayArgs {
/// Gateway URL, e.g. ws://127.0.0.1:7788/v1.
pub url: String,
/// Identity file (must have connected to the server with voice once).
#[arg(long, env = "TSCTL_IDENTITY")]
#[arg(long, env = "VOELINCTL_IDENTITY")]
pub identity: PathBuf,
/// Receive presence and print the tree.
#[arg(long)]
@@ -53,7 +53,9 @@ fn parse_target(s: &str) -> Result<ChatTarget> {
pub async fn run(args: GatewayArgs) -> Result<()> {
let identity = crate::identity::load(&args.identity)?;
let mut request = args.url.as_str().into_client_request()?;
request.headers_mut().insert("Sec-WebSocket-Protocol", tsc_gateway_proto::SUBPROTOCOL.parse()?);
request
.headers_mut()
.insert("Sec-WebSocket-Protocol", voelin_gateway_proto::SUBPROTOCOL.parse()?);
let (mut ws, _) = tokio_tungstenite::connect_async(request)
.await
.with_context(|| format!("failed to connect to {}", args.url))?;
@@ -7,7 +7,7 @@ use anyhow::{Context, Result};
use tsclientlib::Identity;
pub fn default_path() -> PathBuf {
dirs::config_dir().unwrap_or_else(|| PathBuf::from(".")).join("tsctl").join("identity.json")
dirs::config_dir().unwrap_or_else(|| PathBuf::from(".")).join("voelinctl").join("identity.json")
}
pub fn load(path: &Path) -> Result<Identity> {
@@ -45,7 +45,7 @@ mod tests {
#[test]
fn roundtrip() {
let dir = std::env::temp_dir().join(format!("tsctl-id-test-{}", std::process::id()));
let dir = std::env::temp_dir().join(format!("voelinctl-id-test-{}", std::process::id()));
let path = dir.join("id.json");
let identity = create(8);
assert!(identity.level() >= 8);
@@ -1,4 +1,4 @@
//! `tsctl`: headless TeamSpeak 3/6 client for development and integration tests.
//! `voelinctl`: headless TeamSpeak 3/6 client for development and integration tests.
mod gateway;
mod identity;
@@ -55,7 +55,7 @@ enum IdentityCommand {
/// Minimum security level (hash cash). Servers commonly require 8.
#[arg(long, default_value_t = 8)]
level: u8,
/// Where to store the identity [default: <config dir>/tsctl/identity.json].
/// Where to store the identity [default: <config dir>/voelinctl/identity.json].
#[arg(long)]
out: Option<PathBuf>,
/// Overwrite an existing file.
@@ -74,19 +74,19 @@ pub struct ConnectArgs {
/// Server address: host, host:port, or a TeamSpeak server nickname.
address: String,
/// Nickname to use.
#[arg(long, default_value = "tsctl")]
#[arg(long, default_value = "voelinctl")]
nick: String,
/// Identity file. Without it a temporary identity is generated.
#[arg(long, env = "TSCTL_IDENTITY")]
#[arg(long, env = "VOELINCTL_IDENTITY")]
identity: Option<PathBuf>,
/// Signed client version: `default`, an index or `<platform>@<version>` from `tsctl versions`.
/// Signed client version: `default`, an index or `<platform>@<version>` from `voelinctl versions`.
#[arg(long, default_value = "default")]
client_version: String,
/// Server password.
#[arg(long, env = "TSCTL_SERVER_PASSWORD")]
#[arg(long, env = "VOELINCTL_SERVER_PASSWORD")]
server_password: Option<String>,
/// Privilege key (token) to redeem after connecting, e.g. the ServerAdmin key a new server prints.
#[arg(long, env = "TSCTL_PRIVILEGE_KEY")]
#[arg(long, env = "VOELINCTL_PRIVILEGE_KEY")]
privilege_key: Option<String>,
/// Channel to join, as a path like `Lobby/Sub`.
#[arg(long)]
@@ -1,4 +1,4 @@
//! `tsctl observe` and `tsctl relay`: invisible presence and channel chat.
//! `voelinctl observe` and `voelinctl relay`: invisible presence and channel chat.
use std::time::Duration;
@@ -6,8 +6,10 @@ use anyhow::{Result, bail};
use clap::Args;
use tokio::sync::broadcast::error::RecvError;
use tokio::time::{Instant, timeout_at};
use tsc_model::{ChatMessage, ChatTarget, Presence, PresenceDelta};
use tsc_observer::{Observer, ObserverConfig, ObserverEvent, RelayConfig, RelayEvent, RelayPool};
use voelin_model::{ChatMessage, ChatTarget, Presence, PresenceDelta};
use voelin_observer::{
Observer, ObserverConfig, ObserverEvent, RelayConfig, RelayEvent, RelayPool,
};
use crate::query::QueryConnArgs;
@@ -40,7 +42,7 @@ pub struct RelayArgs {
#[arg(long)]
pub send: Option<String>,
/// Name shown in relayed posts.
#[arg(long, default_value = "tsctl")]
#[arg(long, default_value = "voelinctl")]
pub nick: String,
/// Stop after this many seconds (default: until Ctrl-C).
#[arg(long)]
@@ -1,11 +1,11 @@
//! `tsctl query`: ServerQuery commands and events.
//! `voelinctl query`: ServerQuery commands and events.
use std::time::Duration;
use anyhow::{Context, Result, bail};
use clap::Args;
use tokio::io::{AsyncBufReadExt, BufReader};
use tsc_query::{Command, Connect, LineOptions, QueryClient, Row, Transport};
use voelin_query::{Command, Connect, LineOptions, QueryClient, Row, Transport};
/// How to reach and log into a ServerQuery interface.
#[derive(Args, Debug, Clone)]
@@ -19,7 +19,7 @@ pub struct QueryConnArgs {
#[arg(long, default_value = "serveradmin")]
pub user: String,
/// Password (raw/SSH) or API key (HTTP). Without it, HTTP runs as guest.
#[arg(long, env = "TSCTL_QUERY_SECRET", hide_env_values = true)]
#[arg(long, env = "VOELINCTL_QUERY_SECRET", hide_env_values = true)]
pub secret: Option<String>,
/// Select the virtual server by its voice port instead of id 1.
#[arg(long)]
File renamed without changes.
@@ -1,4 +1,4 @@
//! `tsctl connect ... stream start|list|watch`: TeamSpeak 6 streams.
//! `voelinctl connect ... stream start|list|watch`: TeamSpeak 6 streams.
use std::collections::HashMap;
use std::path::{Path, PathBuf};
@@ -11,20 +11,20 @@ use clap::{Args, Subcommand};
use futures::prelude::*;
use tokio::io::{AsyncBufReadExt, BufReader, Lines, Stdin};
use tokio::time::{Instant, Interval, sleep_until};
use tsc_core::media::tsc_media::capture::SourceId;
use tsc_core::media::tsc_media::{Codecs, VideoFrame, convert};
use tsc_core::media::{
CaptureBackend, EncodedSource, Latest, Streamer, StreamerConfig, VideoPipeline, peer_config,
stream_codec,
};
use tsc_model::ServerFlavor;
use tsc_stream::{
EndReason, FrameSource, MediaKind, Output, PeerConfig, Request, StreamEvent, StreamInfo,
StreamNotification, StreamSetup, StreamerEvent, StreamerOptions, Streams, WatchEvent,
};
use tsclientlib::events::{Event, PropertyId};
use tsclientlib::prelude::*;
use tsclientlib::{ClientId, Connection, MessageHandle, StreamItem};
use voelin_core::media::voelin_media::capture::SourceId;
use voelin_core::media::voelin_media::{Codecs, VideoFrame, convert};
use voelin_core::media::{
CaptureBackend, EncodedSource, Latest, Streamer, StreamerConfig, VideoPipeline, peer_config,
stream_codec,
};
use voelin_model::ServerFlavor;
use voelin_stream::{
EndReason, FrameSource, MediaKind, Output, PeerConfig, Request, StreamEvent, StreamInfo,
StreamNotification, StreamSetup, StreamerEvent, StreamerOptions, Streams, WatchEvent,
};
#[derive(Args, Debug, Clone)]
pub struct StreamArgs {
@@ -48,7 +48,7 @@ pub enum StreamCommand {
/// <clid>`, `deny <clid>`, `kick <clid>`, `stop`.
Start {
/// Stream name.
#[arg(long, default_value = "tsctl")]
#[arg(long, default_value = "voelinctl")]
name: String,
/// What to capture: `synthetic` (a moving test pattern and a tone),
/// `x11[:<monitor>]`, `screen[:<monitor>]` (this session's backend),
@@ -3,9 +3,9 @@
use std::collections::HashMap;
use std::fmt::Write;
use tsc_model::ServerFlavor;
use tsclientlib::data;
use tsclientlib::{ChannelId, ClientType};
use voelin_model::ServerFlavor;
/// Minimal channel view, so the ordering logic can be tested without a connection.
#[derive(Clone, Debug)]
@@ -51,7 +51,7 @@ pub fn known_versions() -> Vec<KnownVersion> {
/// Resolve a `--client-version` argument.
///
/// Accepts `default` (the library default), an index into [`known_versions`],
/// or `<platform>@<version>` with the exact strings from `tsctl versions`.
/// or `<platform>@<version>` with the exact strings from `voelinctl versions`.
pub fn resolve(spec: &str) -> Result<Option<Version>> {
if spec == "default" {
return Ok(None);
@@ -68,7 +68,7 @@ pub fn resolve(spec: &str) -> Result<Option<Version>> {
};
match versions.iter().find(|v| v.platform == platform && v.version == version) {
Some(v) => v.to_version().map(Some),
None => bail!("unknown client version {spec:?}, see `tsctl versions`"),
None => bail!("unknown client version {spec:?}, see `voelinctl versions`"),
}
}
@@ -1,13 +1,13 @@
//! `tsctl connect ... voice send|record`.
//! `voelinctl connect ... voice send|record`.
use std::time::Duration;
use anyhow::{Context, Result, bail};
use tokio::time::Instant;
use tsc_audio::pcm::{self, FRAME_SAMPLES, SAMPLE_RATE};
use tsc_audio::{Framer, Mixer, VoiceCodec, VoiceEncoder, resample, wav};
use tsclientlib::{ClientId, Connection, StreamItem};
use tsproto_packets::packets::AudioData;
use voelin_audio::pcm::{self, FRAME_SAMPLES, SAMPLE_RATE};
use voelin_audio::{Framer, Mixer, VoiceCodec, VoiceEncoder, resample, wav};
use crate::VoiceCommand;
use crate::session::{Flow, PumpEnd, pump};