Docs: English authored prose; 0.1.2 changelog (devices, menus, theme, language, updater, icon, identity fix)
ci / linux-arm64-cross (push) Successful in 1m52s
ci / linux-x64 (push) Successful in 2m43s

This commit is contained in:
omar committed 2026-10-24 06:36:56 +03:00
1 parent 1142c9f60d
commit 0fffb27166
7 files changed
+169 -103

No files matched your search

+123 -83
View File
@@ -1,114 +1,154 @@
# TeamsPeach
Настольный клиент для серверов **TeamSpeak 6** без учётной записи myTeamSpeak: голос, чат, дерево
каналов с группами/иконками/баннерами сервера и **просмотр трансляций экрана TS6**.
Интерфейс — Electron (обычные JS-модули, HTML/CSS), протокол — нативное ядро на Rust
(`core/`, ReSpeak tsclientlib) через приватный stdio (контракт: [`docs/bridge.md`](docs/bridge.md)).
A desktop client for **TeamSpeak 6** servers without a myTeamSpeak account: voice, chat, a channel tree
with server groups, icons and banners, and **TS6 screenshare viewing**.
The interface uses Electron (plain JavaScript modules and HTML/CSS); a native Rust core handles the
protocol (`core/`, ReSpeak tsclientlib) over private stdio. See the [bridge contract](docs/bridge.md).
Подробная карта возможностей и доказательств: [`FEATURE_COMPATIBILITY.md`](FEATURE_COMPATIBILITY.md).
See [`FEATURE_COMPATIBILITY.md`](FEATURE_COMPATIBILITY.md) for feature status and evidence. This is not a
claim of full TeamSpeak 6 parity: official-client voice interoperability and Asahi hardware operation
have not been proven.
## Запуск для разработки (Windows / Linux)
## Development (Windows / Linux)
```
npm ci
cargo build --release --locked --manifest-path core/Cargo.toml # нужен Rust ≥ 1.89, CMake, C-компилятор
cargo build --release --locked --manifest-path core/Cargo.toml # requires Rust ≥ 1.89, CMake and a C compiler
npm start
```
Electron ищет ядро в `core/target/release` и `core/target/debug` (берётся более свежий файл).
На Windows cargo установлен rustup'ом без изменения PATH — запускайте `%USERPROFILE%\.cargo\bin\cargo.exe`
или откройте «Developer PowerShell for VS». При нехватке памяти линковки используйте `-j 2`.
Electron looks for the core in `core/target/release` and `core/target/debug`, choosing the newer binary.
If rustup installed Cargo without adding it to PATH on Windows, run
`%USERPROFILE%\.cargo\bin\cargo.exe` or open Developer PowerShell for VS. Use `-j 2` if linking runs out
of memory.
Отдельный профиль (не трогает основной): `TEAMSPEACH_PROFILE_DIR=<абсолютный путь> npm start`.
Use a separate profile without touching the main one: `TEAMSPEACH_PROFILE_DIR=<absolute-path> npm start`.
## Сборка пакетов
## Packaging
```
npm run dist:win-x64 # NSIS + zip
npm run dist:linux-x64 # AppImage + tar.gz
npm run dist:linux-arm64 # AppImage + tar.gz (ядро aarch64 собирается отдельно)
npm run dist:linux-arm64 # AppImage + tar.gz (build the aarch64 core separately)
```
`scripts/dist.mjs` **отказывается** собирать пакет без ядра нужной ОС/архитектуры (проверка
заголовка PE/ELF/Mach-O), кладёт `THIRD_PARTY_NOTICES.md` ядра в `resources/licenses/` и проверяет,
что ядро действительно попало в пакет. Для Asahi (страницы 16 КиБ) есть
`node scripts/elf-pagesize.mjs <файл|папка>` — проверка выравнивания PT_LOAD, glibc и зависимостей.
`scripts/dist.mjs` **refuses** to package without a core for the target OS and architecture (checked via
its PE/ELF/Mach-O header), copies the core's `THIRD_PARTY_NOTICES.md` into `resources/licenses/`, and
checks that the package actually contains the core. For Asahi's 16 KiB pages, use
`node scripts/elf-pagesize.mjs <file-or-directory>` to check PT_LOAD alignment, glibc and dependencies.
CI: `.gitea/workflows/ci.yml` (Gitea Actions, контейнеры на Linux x64): тесты, сборка ядра,
офлайн-проверка идентичности через stdio, Electron-смоук под Xvfb, кросс-сборка ядра aarch64 с
проверкой 16 КиБ и запуском под `qemu-aarch64` (эмуляция, не железо Apple). Запускается только на push в
`main` и вручную: автоматического запуска для pull request нет — репозиторий публичный, а раннер стоит
во внутренней сети, поэтому чужие изменения сначала просматривает мейнтейнер.
CI: `.gitea/workflows/ci.yml` (Gitea Actions, Linux x64 containers) runs tests, builds the core, checks
identity invariants offline over stdio, runs Electron smoke checks under Xvfb, and cross-compiles the
aarch64 core with 16 KiB checks and execution under `qemu-aarch64` (emulation, not Apple hardware).
It runs on pushes to `main` and manual dispatch only. Pull requests do not run automatically: this is a
public repository with a runner on a private network, so a maintainer reviews external changes first.
Релизы: `.gitea/workflows/release.yml` по тегу `v*` (тег должен совпадать с версией в `package.json` и
`core/Cargo.toml`) собирает Linux x64 и ARM64, проверяет ELF и публикует релиз (черновик → все файлы →
публикация). Сборка Windows x64 делается на машине разработчика из того же коммита и прикладывается с
пометкой `local` и файлом происхождения `*-build-info.txt`.
Releases: `.gitea/workflows/release.yml` runs for `v*` tags. The tag must match `package.json` and
`core/Cargo.toml`. It builds Linux x64 and ARM64, checks ELF files, and publishes the release only after
uploading all files to a draft. Windows x64 is built on the developer's machine from the same commit and
attached with a `local` designation and a `*-build-info.txt` provenance file.
## Использование
## Usage
1. Первый запуск: один раз ввести никнейм — создаётся криптографическая идентичность (P-256),
публичный UID виден в «Настройки → Идентичность». Никнейм меняется без смены UID.
2. Ввести адрес сервера (и пароль, если нужен) → «Подключиться». Кнопка «Сохранить» добавляет адрес в
сохранённые серверы: они видны слева над деревом (значок закладки в шапке), подключение — в один клик;
если вы уже на другом сервере, кнопка называется «Переключиться» и сначала корректно отключает текущий.
Название, адрес и удаление — в «Настройки → Серверы». Пароли серверов не сохраняются; для всех серверов
используется одна и та же идентичность.
3. Клик по каналу — переход (для каналов с паролем откроется поле ввода).
4. Голос: «Нажми и говори» (по умолчанию F8 или кнопка в шапке) либо «Открытый микрофон»;
кнопки микрофона и звука внизу слева видны серверу. Правый клик (или Shift+F10) по этим кнопкам
открывает выбор устройства ввода/вывода — тот же, что в «Настройки → Звук»; обычный клик по-прежнему
выключает микрофон/звук. Клавиша «нажми и говори» срабатывает, только когда окно TeamsPeach активно —
об этом напоминает подсказка в шапке канала.
5. Трансляции: у стримящего участника появится кнопка «Смотреть». Громкость, отключение звука,
полный экран, «Прекратить просмотр» — на панели под видео. В строке статуса — реально
согласованный кодек, разрешение и частота кадров.
1. On first launch, enter a nickname to create a cryptographic identity (P-256). The public UID is shown
in Settings → Identity. Changing your nickname does not change your UID.
2. Enter a server address and, if required, its password, then select Connect. Save adds the address to
saved servers above the tree; the bookmark button in the header toggles that list. Connect with one
click. If already connected elsewhere, Switch first disconnects from the current server cleanly.
Edit names and addresses or remove entries in Settings → Servers. Server passwords are not saved;
all servers use the same identity.
3. Click a channel to join it. Password-protected channels show a password field.
4. Voice uses push-to-talk (F8 by default, or the button in the channel header) or an open microphone.
The microphone and audio buttons at the bottom left update your server-visible mute state.
Right-click these buttons, or press Shift+F10 while focused, to select an input or output device using
the same selection as Settings → Audio. Left-click still mutes or deafens. The push-to-talk key works
**only while the TeamsPeach window is focused**; the hint in the channel header explains this.
5. A streaming member has a Watch button. Volume, mute, fullscreen and Stop watching are below the video.
The status line shows the negotiated codec, resolution and frame rate.
## Резервная копия идентичности
## Language
«Настройки → Профиль → Экспортировать…» сохраняет файл в формате TeamSpeak (`.ini`) через системный
диалог. **Файл содержит закрытый ключ** — храните как пароль. Восстановление: «Импортировать…»
(после отключения от сервера; текущая идентичность заменяется только после подтверждения) или
кнопка «Восстановить из резервной копии…» на экране первого запуска. Ядро никогда не создаёт новую
идентичность поверх повреждённой.
The interface defaults to English, independently of the operating-system language. Select Russian in
Settings → Appearance; the saved choice applies to the interface and native identity dialogs. Language
changes do not translate server names, chat messages or operating-system device names.
Данные: `%APPDATA%\TeamsPeach` (Windows), `~/.config/TeamsPeach` (Linux): `core/identity.json`,
`core/profile.json`, `prefs.json`, `logs/`.
## Updates
## Ограничения (честно)
Check for updates in Settings → Information. The first updater-capable version must be installed
manually: version 0.1.1 and older cannot update themselves. Updates come only from published releases
of the public [TeamsPeach/client repository](https://git.eeee.moe/TeamsPeach/client), without credentials.
- Трансляции только P2P (как у официального клиента по умолчанию). SFU-трансляции сервер
обозначает уведомлением — TeamsPeach пишет «не поддерживается». TURN нет: нужен прямой путь
до компьютера стримера (STUN `turn.teamspeak.com`, как у официального клиента).
- Показ своего экрана (отправка трансляции) не реализован.
- Клавиша PTT в TeamsPeach работает только пока окно активно: глобальная клавиша с удержанием
(например, через портал GlobalShortcuts на Wayland) не реализована.
- Цвет ника: официальный клиент подсвечивает собственный ник и ники контактов myTeamSpeak (локальные
связи, а не данные сервера). Без учётной записи контактов нет, поэтому TeamsPeach выделяет только свой ник.
- Аватары: показываются серверные и myTeamSpeak-аватары (публичные https-ссылки, байты проверяются по
сигнатуре). Встроенные иконки групп TeamSpeak (id 100, 200, 300, 500, 600) — нейтральный значок с
названием группы: у сервера нет этих файлов.
- Управление «Cisco OpenH264» и выбор аппаратных бэкендов из TS6 в движке Chromium недоступны;
декодирование выбирает Chromium (на Windows подтверждён аппаратный D3D11 для AV1).
- Сборки macOS и Windows ARM64 не выпускаются: нет сборочных машин. Linux ARM64 собирается
кроссом; запуск на Asahi M1 Pro не проверен — машина недоступна по SSH.
- Пакеты не подписаны: Windows SmartScreen и macOS Gatekeeper будут предупреждать.
Windows x64 NSIS installations and Linux x64/ARM64 AppImages can download a verified package and install
it after confirmation. Windows zip and Linux tar.gz distributions notify you and open the release page;
replace those files manually. Development runs and unsupported platforms do not self-update. The
default Preview channel includes prereleases; choose Stable to exclude them. Installation never starts
automatically, and interrupting an active server session requires explicit confirmation.
## Продукт и дизайн
For platform details, release requirements and verification scope, see [Updates](docs/updates.md).
Implementation and service-level tests do not by themselves prove a successful installed upgrade;
published-release end-to-end evidence must identify the source and destination versions.
Рабочий инструмент: привычная раскладка голосового чата (сервер и дерево слева, канал/чат справа),
настройки — разделы слева (Идентичность, Серверы, Внешний вид, Звук, Видео, Клавиши, Информация) и
карточки справа, как на образце владельца. Тема по умолчанию — тёмная (независимо от системы); светлую или
«Как в системе» можно выбрать в «Настройки → Внешний вид», выбор сохраняется. Уже сохранённый выбор при
обновлении не меняется.
Системные шрифты, единственный акцент — персиковый; зелёный —
только «говорит». Всё содержимое сервера выводится как текст (`textContent`), изображения — только
байты, проверенные по сигнатуре. Renderer изолирован (contextIsolation, sandbox, строгая CSP,
список разрешённых команд в main); пути к файлам выбирает только main через системные диалоги.
## Identity backups
## Проверки
Settings → Identity → Export saves a TeamSpeak-format `.ini` file through a native dialog.
**This file contains your private key: protect it like a password.** Restore it with Import after
disconnecting from the server; replacing the current identity requires confirmation. You can also use
Restore from backup on the first-run screen. The core never silently replaces a corrupt identity.
- `npm test` — модульные тесты (валидация IPC, сессия просмотра, каталог трансляций).
- `node scripts/core-smoke.mjs <ядро>` — офлайн-инварианты идентичности.
- `node scripts/smoke-ui.mjs`, `smoke-voice.mjs`, `probe-stream.mjs`, `loopback-stream.mjs`,
`smoke-tree.mjs` — реальный UI; результаты прогонов лежат в `docs/evidence/runtime/`.
Data locations: `%APPDATA%\TeamsPeach` (Windows), `~/.config/TeamsPeach` (Linux). Files include
`core/identity.json`, `core/profile.json`, `prefs.json` and `logs/`.
## Limitations
- Screenshares use P2P only, as the official client does by default. SFU notifications are reported as
unsupported. There is no TURN relay: the viewer needs a direct network path to the streaming computer
(STUN uses `turn.teamspeak.com`, as in the official client).
- Sending your own screenshare is not implemented.
- Push-to-talk only works while the window is focused. A global hold-to-talk shortcut, such as one using
the Wayland GlobalShortcuts portal, is not implemented.
- The official client highlights your own nickname and myTeamSpeak contacts using local relationships,
not server data. Without an account there are no contacts, so TeamsPeach highlights only your own name.
- Server and myTeamSpeak avatars are displayed from public HTTPS URLs after image-signature checks.
Built-in TeamSpeak group icons (IDs 100, 200, 300, 500, 600) use a neutral badge with the group name,
because the server does not supply these files.
- Chromium does not expose the official client's Cisco OpenH264 switch or per-codec hardware backend
selection. Chromium chooses the decoder; AV1 hardware decoding with D3D11 was demonstrated on Windows.
- macOS and Windows ARM64 builds are not published because build hosts are unavailable. Linux ARM64 is
cross-compiled; execution on Asahi M1 Pro hardware has not been checked because the target was
unreachable over SSH.
- Packages are unsigned. Windows SmartScreen warns about unsigned builds; macOS Gatekeeper would also
require attention for a future macOS build.
- The recorded two-way voice run used synthetic capture between two TeamsPeach clients. It does not
prove live microphone interoperability with the official TS6 client or operation on Asahi hardware.
## Product and design
A familiar voice-chat layout: server and channel tree on the left, channel and chat on the right.
Settings use category navigation (Identity, Servers, Appearance, Audio, Video, Keys, Information) on the
left and cards on the right, following the supplied reference. New profiles default to a dark theme,
independent of the OS. Choose Light or System in Settings → Appearance; the choice persists, and an
existing saved choice is preserved across upgrades.
System fonts and a restrained peach accent keep the interface readable; green indicates a speaker.
Server text is rendered with `textContent`; image bytes are checked by signature. The renderer uses
context isolation, a sandbox, a strict CSP and allowlisted main-process commands. Only the main process
selects file paths through native dialogs.
## Repository language and evidence
Repository-authored documentation, comments, logs, diagnostics, scripts and release notes are in
English. Localized UI text belongs in the shared translation catalog; technical error details stay in
English and may be shown after a localized explanation. Server content, operating-system device names
and user messages are data, not translation resources.
Historical JSON captures and screenshots in `docs/evidence/runtime/` retain the exact UI text, server
names and device names observed during each run, including Russian text. They are not translated or
rewritten to resemble the current interface. Unicode test fixtures retain their original values.
## Checks
- `npm test` runs unit tests for contracts such as IPC validation, viewer sessions and stream discovery.
- `node scripts/core-smoke.mjs <core-binary>` checks identity invariants offline.
- `node scripts/smoke-ui.mjs`, `smoke-voice.mjs`, `probe-stream.mjs`, `loopback-stream.mjs` and
`smoke-tree.mjs` exercise the real UI. Recorded results are in `docs/evidence/runtime/`; each run's
scope and limitations apply.