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

+15 -15
View File
@@ -8,8 +8,8 @@ plugins {
/** The Cargo workspace the native library comes from. */
val workspace: File = rootDir.parentFile
/** `version` of crates/tsc-android, which is the app's version (docs/release.md). */
val crateVersion: String = workspace.resolve("crates/tsc-android/Cargo.toml").readLines()
/** `version` of crates/voelin-android, which is the app's version (docs/release.md). */
val crateVersion: String = workspace.resolve("crates/voelin-android/Cargo.toml").readLines()
.first { it.startsWith("version = ") }
.substringAfter('"').substringBefore('"')
@@ -29,17 +29,17 @@ fun lockedVersion(crate: String): String {
fun signing(property: String, env: String): String? =
providers.gradleProperty(property).orElse(providers.environmentVariable(env)).orNull
val releaseStoreFile = signing("tsc.signing.storeFile", "TSC_SIGNING_STORE_FILE")
val releaseStoreFile = signing("voelin.signing.storeFile", "VOELIN_SIGNING_STORE_FILE")
android {
namespace = "io.github.faumaray.tsc"
namespace = "io.github.faumaray.voelin"
compileSdk = 36
ndkVersion = "27.3.13750724"
defaultConfig {
// Placeholder like the desktop app id (packaging/README.md); it cannot
// change after the first upload to Google Play.
applicationId = "io.github.faumaray.TsClient"
// The desktop app id (packaging/README.md); it cannot change after
// the first upload to Google Play.
applicationId = "io.github.faumaray.Voelin"
minSdk = 29
targetSdk = 36
versionName = crateVersion
@@ -52,9 +52,9 @@ android {
if (releaseStoreFile != null) {
create("release") {
storeFile = file(releaseStoreFile)
storePassword = signing("tsc.signing.storePassword", "TSC_SIGNING_STORE_PASSWORD")
keyAlias = signing("tsc.signing.keyAlias", "TSC_SIGNING_KEY_ALIAS")
keyPassword = signing("tsc.signing.keyPassword", "TSC_SIGNING_KEY_PASSWORD")
storePassword = signing("voelin.signing.storePassword", "VOELIN_SIGNING_STORE_PASSWORD")
keyAlias = signing("voelin.signing.keyAlias", "VOELIN_SIGNING_KEY_ALIAS")
keyPassword = signing("voelin.signing.keyPassword", "VOELIN_SIGNING_KEY_PASSWORD")
}
}
}
@@ -90,12 +90,12 @@ dependencies {
implementation("org.rustls:rustls-platform-verifier:${lockedVersion("rustls-platform-verifier-android")}")
}
// libtsc_android.so, built with cargo-ndk into build/rust/<build type>/<abi>/
// before the JNI libraries are merged. -Ptsc.skipCargo=true uses what is
// libvoelin_android.so, built with cargo-ndk into build/rust/<build type>/<abi>/
// before the JNI libraries are merged. -Pvoelin.skipCargo=true uses what is
// there (e.g. built by CI in an earlier step).
val abis = providers.gradleProperty("tsc.abis").getOrElse("arm64-v8a,x86_64")
val abis = providers.gradleProperty("voelin.abis").getOrElse("arm64-v8a,x86_64")
.split(',').map(String::trim).filter(String::isNotEmpty)
val skipCargo = providers.gradleProperty("tsc.skipCargo").map(String::toBoolean).getOrElse(false)
val skipCargo = providers.gradleProperty("voelin.skipCargo").map(String::toBoolean).getOrElse(false)
for ((buildType, release) in listOf("debug" to false, "release" to true)) {
val out = layout.buildDirectory.dir("rust/$buildType")
@@ -106,7 +106,7 @@ for ((buildType, release) in listOf("debug" to false, "release" to true)) {
workingDir = workspace
val command = mutableListOf("cargo", "ndk", "--platform", "29", "-o", out.get().asFile.path)
abis.forEach { command += listOf("-t", it) }
command += listOf("build", "-p", "tsc-android")
command += listOf("build", "-p", "voelin-android")
if (release) command += "--release"
commandLine(command)
val ndk = android.ndkDirectory.path
+3 -3
View File
@@ -1,7 +1,7 @@
# Called from Rust through JNI by name.
-keep class io.github.faumaray.tsc.Bridge { *; }
-keep class io.github.faumaray.tsc.Native { *; }
-keep class io.github.faumaray.tsc.TscApp { *; }
-keep class io.github.faumaray.voelin.Bridge { *; }
-keep class io.github.faumaray.voelin.Native { *; }
-keep class io.github.faumaray.voelin.VoelinApp { *; }
# rustls-platform-verifier's Kotlin component, also called from Rust.
-keep class org.rustls.platformverifier.** { *; }
+3 -3
View File
@@ -20,12 +20,12 @@
restored on another device anyway.
-->
<application
android:name=".TscApp"
android:name=".VoelinApp"
android:allowBackup="false"
android:hasCode="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Tsc">
android:theme="@style/Theme.Voelin">
<!--
The Rust UI runs in this NativeActivity (android.app.lib_name).
@@ -40,7 +40,7 @@
android:windowSoftInputMode="adjustResize">
<meta-data
android:name="android.app.lib_name"
android:value="tsc_android" />
android:value="voelin_android" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
@@ -1,4 +1,4 @@
package io.github.faumaray.tsc
package io.github.faumaray.voelin
import android.Manifest
import android.content.Context
@@ -6,11 +6,11 @@ import android.content.pm.PackageManager
import android.os.Build
/**
* What the Rust library (crates/tsc-android/src/bridge.rs) calls, from any
* What the Rust library (crates/voelin-android/src/bridge.rs) calls, from any
* thread. Keep the names and signatures in step with it.
*/
object Bridge {
private val app: TscApp get() = TscApp.instance
private val app: VoelinApp get() = VoelinApp.instance
@JvmStatic
fun context(): Context = app
@@ -1,4 +1,4 @@
package io.github.faumaray.tsc
package io.github.faumaray.voelin
import android.app.NativeActivity
import android.content.Intent
@@ -7,7 +7,7 @@ import android.os.Bundle
import java.lang.ref.WeakReference
/**
* The window: a NativeActivity running `android_main` of libtsc_android.so
* The window: a NativeActivity running `android_main` of libvoelin_android.so
* (the Slint UI). Kotlin only handles what needs an Activity: permission
* prompts and the screen-capture consent dialog.
*/
@@ -1,13 +1,13 @@
package io.github.faumaray.tsc
package io.github.faumaray.voelin
import java.nio.ByteBuffer
/** Callbacks into the Rust library (crates/tsc-android/src/bridge.rs). */
/** Callbacks into the Rust library (crates/voelin-android/src/bridge.rs). */
object Native {
init {
// Already loaded by the NativeActivity; this registers it for JNI
// lookups from this class loader.
System.loadLibrary("tsc_android")
System.loadLibrary("voelin_android")
}
/** The user answered the screen-capture dialog (`error`: why it failed). */
@@ -1,4 +1,4 @@
package io.github.faumaray.tsc
package io.github.faumaray.voelin
import android.app.Notification
import android.app.NotificationChannel
@@ -1,4 +1,4 @@
package io.github.faumaray.tsc
package io.github.faumaray.voelin
import android.Manifest
import android.app.PendingIntent
@@ -92,7 +92,7 @@ class ScreenCaptureService : Service() {
}
private fun startVideo(projection: MediaProjection, fps: Int, maxSize: Int) {
val worker = HandlerThread("tsc-screen").also { it.start() }
val worker = HandlerThread("voelin-screen").also { it.start() }
this.worker = worker
val handler = Handler(worker.looper)
// The user or the system can end the projection (status bar chip,
@@ -137,7 +137,7 @@ class ScreenCaptureService : Service() {
}
}, handler)
display = projection.createVirtualDisplay(
"tsc-screen",
"voelin-screen",
width,
height,
metrics.densityDpi,
@@ -179,7 +179,7 @@ class ScreenCaptureService : Service() {
}
audioRunning = true
record.startRecording()
audioThread = thread(name = "tsc-system-audio") {
audioThread = thread(name = "voelin-system-audio") {
// 10 ms of stereo.
val buffer = FloatArray(SAMPLE_RATE / 100 * 2)
try {
@@ -222,7 +222,7 @@ class ScreenCaptureService : Service() {
private const val TAG = "ScreenCaptureService"
private const val ID = 2
private const val SAMPLE_RATE = 48_000
private const val ACTION_STOP = "io.github.faumaray.tsc.STOP_SHARING"
private const val ACTION_STOP = "io.github.faumaray.voelin.STOP_SHARING"
private const val EXTRA_RESULT = "result"
private const val EXTRA_DATA = "data"
private const val EXTRA_FPS = "fps"
@@ -1,4 +1,4 @@
package io.github.faumaray.tsc
package io.github.faumaray.voelin
import android.content.Context
import android.security.keystore.KeyGenParameterSpec
@@ -22,7 +22,7 @@ import javax.crypto.spec.GCMParameterSpec
object SecretStore {
private const val TAG = "SecretStore"
private const val KEYSTORE = "AndroidKeyStore"
private const val KEY_ALIAS = "tsc-secrets"
private const val KEY_ALIAS = "voelin-secrets"
private const val PREFS = "secrets"
private const val TRANSFORMATION = "AES/GCM/NoPadding"
private const val IV_BYTES = 12
@@ -1,9 +1,9 @@
package io.github.faumaray.tsc
package io.github.faumaray.voelin
import android.app.Application
/** The process's application object; the Rust side reaches Android through it. */
class TscApp : Application() {
class VoelinApp : Application() {
override fun onCreate() {
super.onCreate()
instance = this
@@ -11,7 +11,7 @@ class TscApp : Application() {
}
companion object {
lateinit var instance: TscApp
lateinit var instance: VoelinApp
private set
}
}
@@ -1,4 +1,4 @@
package io.github.faumaray.tsc
package io.github.faumaray.voelin
import android.app.Notification
import android.app.NotificationManager
@@ -58,8 +58,8 @@ class VoiceService : Service() {
private const val ID = 1
private const val EXTRA_TEXT = "text"
private const val EXTRA_MUTED = "muted"
private const val ACTION_DISCONNECT = "io.github.faumaray.tsc.DISCONNECT"
private const val ACTION_TOGGLE_MUTE = "io.github.faumaray.tsc.TOGGLE_MUTE"
private const val ACTION_DISCONNECT = "io.github.faumaray.voelin.DISCONNECT"
private const val ACTION_TOGGLE_MUTE = "io.github.faumaray.voelin.TOGGLE_MUTE"
@Volatile
private var running: VoiceService? = null
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Placeholder icon (packaging/linux/io.github.faumaray.TsClient.svg): a
Placeholder icon (packaging/linux/io.github.faumaray.Voelin.svg): a
speech bubble with sound waves, sized for the adaptive icon's safe zone.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
+1 -2
View File
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Placeholder product name (packaging/README.md). -->
<string name="app_name">TS Client</string>
<string name="app_name">Voelin</string>
<string name="channel_voice">Voice connection</string>
<string name="channel_screen">Screen sharing</string>
<string name="voice_connected">Connected to voice</string>
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- The Slint UI draws the whole window. -->
<style name="Theme.Tsc" parent="@android:style/Theme.DeviceDefault.NoActionBar">
<style name="Theme.Voelin" parent="@android:style/Theme.DeviceDefault.NoActionBar">
<item name="android:windowBackground">@color/window_background</item>
</style>
</resources>
+2 -2
View File
@@ -3,5 +3,5 @@ android.useAndroidX=false
android.nonTransitiveRClass=true
kotlin.code.style=official
# ABIs the Rust library is built for (cargo-ndk names), e.g. only
# -Ptsc.abis=arm64-v8a for a phone.
tsc.abis=arm64-v8a,x86_64
# -Pvoelin.abis=arm64-v8a for a phone.
voelin.abis=arm64-v8a,x86_64
+1 -1
View File
@@ -2,7 +2,7 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=bd71102213493060956ec229d946beee57158dbd89d0e62b91bca0fa2c5f3531
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
networkTimeout=60000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+1 -1
View File
@@ -20,5 +20,5 @@ dependencyResolutionManagement {
}
}
rootProject.name = "tsc"
rootProject.name = "voelin"
include(":app")