Remove Electron and make Rust Slint the sole native client
This commit is contained in:
1 parent
eb24965076
commit
220852f8cb
720 files changed
+2535
-130856
No files matched your search
@@ -2,8 +2,9 @@
|
||||
|
||||
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).
|
||||
The interface is native **Rust/Slint**, with Skia presentation and source-built libwebrtc. The Rust
|
||||
protocol library (`core/`, ReSpeak tsclientlib) runs in process through typed, bounded services.
|
||||
The standalone core's diagnostic JSON adapter is documented in the [bridge contract](docs/bridge.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
|
||||
@@ -11,56 +12,76 @@ have not been proven.
|
||||
|
||||
## Development (Windows / Linux)
|
||||
|
||||
```
|
||||
npm ci
|
||||
rustup target add wasm32-unknown-unknown
|
||||
node scripts/build-denoise.mjs # workspace denoise profile, zero-import WASM
|
||||
cargo build --release --locked --manifest-path core/Cargo.toml # pinned Rust 1.96.0, CMake and a C compiler
|
||||
npm start
|
||||
Use the pinned Rust toolchain in `rust-toolchain.toml`, a native C/C++ compiler, CMake, Python 3,
|
||||
and the target's installed SDK/toolchain. Native dependencies are source-built from the revisions and
|
||||
provenance gates in `native/native-deps.lock.json`; no browser runtime or JavaScript build tooling is required.
|
||||
|
||||
Run from the repository root, selecting the real target triple:
|
||||
|
||||
```sh
|
||||
cargo run -p xtask -- deps --target x86_64-pc-windows-msvc
|
||||
cargo run -p xtask -- build --target x86_64-pc-windows-msvc
|
||||
```
|
||||
|
||||
Electron looks for the core in workspace `target/release` and `target/debug`, choosing the newer binary.
|
||||
`CARGO_TARGET_DIR` overrides that directory; relative paths resolve from the repository root in the
|
||||
launch and packaging scripts. The workspace uses one root `Cargo.lock`; the `denoise` Cargo profile
|
||||
retains the separate WASM optimization settings. The native migration is in progress, not a replacement
|
||||
client release: `native/compatibility.json` tracks pending consumer contracts, not completed features.
|
||||
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.
|
||||
Linux targets include `x86_64-unknown-linux-gnu` and `aarch64-unknown-linux-gnu`. Provisioning requires
|
||||
network access and suitable installed platform tools; `xtask` does not install system SDKs. `--llvm-dir`,
|
||||
`--skia-source` and `--jobs` select explicitly supplied tools/sources and build parallelism.
|
||||
The normal build retains the Skia and WebRTC feature set; a reduced-feature build is not a product build.
|
||||
Outputs use workspace `target/<target-triple>/release` or `CARGO_TARGET_DIR` (relative to the repository root).
|
||||
Launch `teamspeach.exe` on Windows or `teamspeach` on Linux from that directory.
|
||||
|
||||
Use a separate profile without touching the main one: `TEAMSPEACH_PROFILE_DIR=<absolute-path> npm start`.
|
||||
|
||||
The safe UI suites use a disposable, hidden, nonfocusable, offscreen and muted Electron process:
|
||||
`node scripts/smoke-official-shell-offscreen.mjs --exe <isolated-package> --out <evidence-directory>`.
|
||||
The launcher refuses packaged main code that differs from the current offscreen-aware source. Generated
|
||||
streams use real local Chromium WebRTC but synthetic signaling/server state; this is not live-server
|
||||
interoperability proof. No native fullscreen/PiP, OS input, capture, clipboard or native dialogs are used.
|
||||
Set `TEAMSPEACH_PROFILE_DIR` to an absolute, separate directory before launch to avoid changing the main
|
||||
profile. First-run native onboarding supports explicit read-only import of a selected historical profile;
|
||||
it never silently adopts or overwrites it. See **Identity backups and profile migration** below.
|
||||
|
||||
## Packaging
|
||||
|
||||
```
|
||||
npm run dist:win-x64 # NSIS + zip
|
||||
npm run dist:linux-x64 # AppImage + tar.gz
|
||||
npm run dist:linux-arm64 # AppImage + tar.gz (build the aarch64 core separately)
|
||||
```sh
|
||||
cargo run -p xtask -- package --target x86_64-pc-windows-msvc --out dist/native-local
|
||||
cargo run -p xtask -- verify-package --target x86_64-pc-windows-msvc --out dist/native-local
|
||||
```
|
||||
|
||||
`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.
|
||||
Packaging consumes a completed native build and installed platform packaging tools. Use a fresh output
|
||||
directory for a rebuild. Windows uses NSIS and ZIP; Linux uses AppImage and tar.gz. The package includes
|
||||
native resources, core/WebRTC notices and asset provenance. Actual archive inspection checks architecture,
|
||||
imports, assets/licenses, native build receipts and the absence of browser/JavaScript runtime payloads.
|
||||
ARM64 Linux acceptance includes 16 KiB-compatible ELF segments; emulation is not Asahi hardware evidence.
|
||||
|
||||
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.
|
||||
Local packages, unsigned packages and test-harness packages are not publication or installed-update proof.
|
||||
`xtask package` and `verify-package` are local-only; `publish-release` is a separate explicit command
|
||||
used by the trusted-tag workflow. No command creates tags or infers signing credentials. Redistribution
|
||||
rights for retained TeamSpeak artwork/sounds and platform signing/acceptance remain separate requirements.
|
||||
CI/release configuration is under `.gitea/workflows/`; an unexecuted configuration is not a successful run.
|
||||
|
||||
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.
|
||||
### Native CI and releases
|
||||
|
||||
The workflows require matching native runners labelled `teamspeach-native-linux-x64` and
|
||||
`teamspeach-native-linux-arm64`. Provision Rust 1.96.0, Python 3, LLVM/libclang, CMake, Ninja,
|
||||
Linux audio/window development libraries, Xvfb and D-Bus session tools before enabling them.
|
||||
Set repository variables `NATIVE_LLVM_HOME`, `NATIVE_LIBCLANG_PATH` and `NATIVE_SKIA_SOURCE_DIR`
|
||||
to existing tools and a dependency-synchronized Skia checkout containing `bin/gn`. Packaging also
|
||||
requires linuxdeploy, appimagetool, unsquashfs and archive/LLVM inspection tools. Jobs explicitly run
|
||||
`xtask deps` to provision pinned WebRTC; they do not install system SDKs on the runner.
|
||||
|
||||
```sh
|
||||
cargo run --locked -p xtask -- check-version
|
||||
python -B -m unittest discover -s xtask -p test_publish_release.py
|
||||
cargo run --locked -p xtask -- prepare-release --out artifacts
|
||||
```
|
||||
|
||||
Release assembly consumes the downloaded `teamspeach-native-<target-triple>` bundles for both Linux
|
||||
architectures, including their package, payload-verification and dependency receipts. It validates all
|
||||
digests and merges the native manifest. Trusted `v*` tags then use `publish-release --out artifacts`
|
||||
with the workflow's `GITEA_TOKEN`, `GITHUB_REF`, `GITHUB_SERVER_URL` and `GITHUB_REPOSITORY` environment.
|
||||
Publication creates a new draft, uploads and reads back all assets, checks hashes, then publishes;
|
||||
it refuses to overwrite an existing release. Manual dispatch builds/verifies without publication.
|
||||
The Python tests mock HTTP and never publish. Native compilation, UI smoke and device acceptance
|
||||
remain separate checks; removing the Electron updater harness does not establish native update E2E.
|
||||
|
||||
## Usage
|
||||
The following is the retained behavioral contract for the native client, not a declaration that every
|
||||
native/platform acceptance case has passed. Consult FEATURE_COMPATIBILITY.md for scoped evidence and gaps.
|
||||
|
||||
|
||||
1. On first launch, enter a nickname to create a local P-256 identity without an account. Settings →
|
||||
Identity manages multiple identities, their names/nicknames, default selection, additive import,
|
||||
@@ -125,8 +146,8 @@ attached with a `local` designation and a `*-build-info.txt` provenance file.
|
||||
Local volume uses the official -200..+10 dB taper, Mute and Reset. Reset restores 0 dB and unmutes;
|
||||
explicitly committed modifiers persist by UID, while mute is session-local. Gain is applied before
|
||||
voice mixing and never changes other participants.
|
||||
The native avatar chooser accepts PNG/JPEG up to 128 KiB and exposes image bytes, never a file path, to
|
||||
the renderer. Permission lists show explicit client/channel assignments, not a full effective-rights audit.
|
||||
The native avatar chooser accepts PNG/JPEG up to 128 KiB; UI intents do not supply arbitrary host paths.
|
||||
Permission lists show explicit client/channel assignments, not a full effective-rights audit.
|
||||
8. **Start Stream** opens the source chooser. Selecting a tile shows its thumbnail; **Next** starts
|
||||
the muted private preview. Only **Go Live** publishes it. Choose an observed window/screen or
|
||||
explicitly opt into a camera; camera capture does not include a microphone. Back, cancellation,
|
||||
@@ -137,9 +158,8 @@ attached with a `local` designation and a `*-build-info.txt` provenance file.
|
||||
Selected-application audio is opt-in: Windows uses WASAPI process-tree capture on build 20348+;
|
||||
Linux uses PulseAudio/pipewire-pulse sink-input streams through `pactl` and `parec`. Pure PipeWire
|
||||
without Pulse compatibility and macOS selected-application audio are not implemented.
|
||||
Changing the audio source/scope/app selection never silently reopens the system picker. An explicit
|
||||
Restart preview action is required for desktop-capturer sources; system-picker sources require Back
|
||||
and a new explicit selection. The separate supported system-audio choice remains under Advanced.
|
||||
Changing the audio source/scope/app selection never silently reopens a system picker. Changed sources
|
||||
require explicit preview restart or Back and a fresh source selection, according to the native backend.
|
||||
Per-app/master gains apply to the outgoing mix; clicking the percent readout resets gain to 100%.
|
||||
System audio is never substituted silently, and the local tile is not another receiver subscription.
|
||||
Native capture depends on OS consent and the installed desktop/portal backend; these paths are not
|
||||
@@ -148,7 +168,7 @@ attached with a `local` designation and a `*-build-info.txt` provenance file.
|
||||
errors. Snapshot import is non-atomic: completed server changes are not rolled back by cancellation.
|
||||
General file browsing/transfers support the legacy server transport; HTTPFT/S3 remain explicit gaps
|
||||
with no speculative legacy fallback. Filesystem publication fails safely when required atomic/no-replace
|
||||
semantics are unavailable. Recording and transfer destinations are approved in main, not renderer paths.
|
||||
semantics are unavailable. Native services approve recording/transfer destinations through chooser grants.
|
||||
File Transfer settings retain an approved download folder or ask every time, and apply upload/download
|
||||
concurrency across all tabs (combined at most ten) plus shared directional rate limits. Limits apply to
|
||||
active file/snapshot work without restarting streams; they are conservative ceilings, not bandwidth guarantees.
|
||||
@@ -161,9 +181,9 @@ attached with a `local` designation and a `*-build-info.txt` provenance file.
|
||||
remain unresolved. They are not excluded merely because they share Matrix room controls. Local UID contacts are separate.
|
||||
11. Streams support hide/show without unsubscribing, ordering, focus with a secondary strip, pages,
|
||||
an internal tile overlay and moving the existing stage over the server tree. Publisher admission,
|
||||
kick/ban/unblock, pause and live options keep the original tracks/sessions. Standalone pop-out reuses
|
||||
the same video; its hidden guest renderer was exercised with explicit test-only viewport emulation.
|
||||
Unmodified native pop-out painting and SFU interoperability remain unverified.
|
||||
kick/ban/unblock, pause and live options keep the original tracks/sessions. Standalone pop-out must
|
||||
reuse the same decoded media and ownership without a second join. Historical browser-only viewport
|
||||
emulation does not prove native pop-out painting or SFU interoperability.
|
||||
|
||||
|
||||
## Local panels and integrations
|
||||
@@ -181,12 +201,11 @@ attached with a `local` designation and a `*-build-info.txt` provenance file.
|
||||
- **Noise reduction:** Settings → Audio has four levels saved per input device. The implementation is
|
||||
independent DSP; selected settings and generated-media checks do not prove microphone sound quality
|
||||
or bit-identical behavior with the official client.
|
||||
- **Saved bookmark passwords:** encryption uses the operating system's protected storage. Linux
|
||||
`basic_text`/unknown backends are refused; there is no plaintext fallback. A password is revealed only
|
||||
by an explicit eye-button click. Changing the address removes its saved passwords; duplicating a bookmark
|
||||
at the same address preserves them. Forgetting a password still works if encryption becomes unavailable.
|
||||
Encryption is tied to the OS user/key store and is not a portable backup format. Windows DPAPI was exercised;
|
||||
Linux keyring and macOS Keychain behavior have not been verified on hardware.
|
||||
- **Saved bookmark passwords:** native protected storage uses platform secret APIs, never a plaintext
|
||||
fallback. Historical encrypted passwords require explicit one-time re-entry; old ciphertext is not
|
||||
reused. Reveal requires an explicit action, address changes invalidate saved credentials, and forgetting
|
||||
a password remains possible if the key store is unavailable. Encryption is tied to the OS user/key store,
|
||||
not a portable backup format. Hardware verification is platform-specific; simulated backends are not proof.
|
||||
|
||||
## Language
|
||||
|
||||
@@ -196,29 +215,34 @@ changes do not translate server names, chat messages or operating-system device
|
||||
|
||||
## 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.
|
||||
Check for updates in Settings → Information. Updates come only from published releases of the public
|
||||
[TeamsPeach/client repository](https://git.eeee.moe/TeamsPeach/client), without credentials. The native
|
||||
updater requires a validated `rust-slint` release manifest, exact target artifacts and verified hashes.
|
||||
Historical browser-client release feeds alone are insufficient for a native offer.
|
||||
|
||||
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.
|
||||
Windows x64 NSIS installations with a valid native installation receipt and Linux x64/ARM64 AppImages
|
||||
have explicit-install paths. Portable archives and custom-profile Windows runs are manual-only;
|
||||
development/test builds do not self-update. Preview includes prereleases; Stable excludes them.
|
||||
Nothing installs or restarts automatically, and interrupting an active session requires confirmation.
|
||||
See [Updates](docs/updates.md) for platform modes and release/acceptance requirements. No successful
|
||||
published native upgrade is claimed without source/destination versions and preserved-profile evidence.
|
||||
|
||||
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.
|
||||
## Identity backups and profile migration
|
||||
|
||||
## Identity backups
|
||||
Identity export writes a TeamSpeak-format `.ini` through a native chooser after a private-key warning.
|
||||
**This file contains your private key: protect it like a password.** Import is additive, preserves existing
|
||||
UIDs, and never silently replaces a corrupt identity. Native onboarding also offers explicit migration
|
||||
from an existing historical profile into a separate native profile; close the old client first.
|
||||
|
||||
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.
|
||||
|
||||
Data locations: `%APPDATA%\TeamsPeach` (Windows), `~/.config/TeamsPeach` (Linux). Files include
|
||||
`core/identity.json`, `core/profile.json`, `prefs.json` and `logs/`.
|
||||
Migration copies and validates identities/default selection, preferences, history, keybindings, whispers,
|
||||
local volumes, file settings and extensions, leaving the source untouched. Passwords require re-entry;
|
||||
legacy device identifiers require separate user-confirmed input/output/notification mapping before capture.
|
||||
Interrupted staging imports need an explicit recovery decision; no silent reset or source deletion occurs.
|
||||
Native data defaults to `%APPDATA%\TeamsPeachNative` on Windows,
|
||||
`$XDG_CONFIG_HOME/TeamsPeachNative` (or `~/.config/TeamsPeachNative`) on Linux, and
|
||||
`~/Library/Application Support/TeamsPeachNative` on macOS. These roots are separate from historical
|
||||
`TeamsPeach` profiles. Mobile uses its private application container's `profile-v1` directory.
|
||||
An absolute, normalized `TEAMSPEACH_PROFILE_DIR` selects a separate root; do not point it at the old profile.
|
||||
|
||||
## Limitations
|
||||
|
||||
@@ -228,9 +252,9 @@ Data locations: `%APPDATA%\TeamsPeach` (Windows), `~/.config/TeamsPeach` (Linux)
|
||||
- P2P screenshare publishing is implemented, but native source capture on every OS/window manager,
|
||||
macOS selected-application audio and official-client interoperability are not all verified. SFU publishing
|
||||
is unavailable. See the feature matrix for the precise implementation and evidence boundaries.
|
||||
- In-window push-to-talk releases on focus loss. Global bindings use the available Windows/Linux
|
||||
backend; actual OS registration and Wayland portal operation were not exercised by the hidden UI
|
||||
checks. macOS global shortcuts are explicitly unsupported. No platform-wide shortcut guarantee is made.
|
||||
- In-window push-to-talk must release on focus loss. Global bindings depend on the real OS backend,
|
||||
registration and permissions; hidden checks do not prove OS registration or Wayland portal operation.
|
||||
No platform-wide shortcut guarantee is made.
|
||||
- Local contacts are keyed by server identity UID and can be highlighted in the tree. They do not sync
|
||||
with myTeamSpeak, provide global presence or enable cloud/offline chat.
|
||||
- Server-stored avatars, icons and banners use TeamSpeak file transfer. myTeamSpeak avatars use public
|
||||
@@ -239,8 +263,8 @@ Data locations: `%APPDATA%\TeamsPeach` (Windows), `~/.config/TeamsPeach` (Linux)
|
||||
live because no client on the test server advertised one.
|
||||
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.
|
||||
- Native decoder policy applies to the real libwebrtc factory. Historical Chromium hardware-decoder
|
||||
evidence does not establish native hardware decode, per-codec selection or Cisco backend support.
|
||||
- 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.
|
||||
@@ -251,7 +275,7 @@ Data locations: `%APPDATA%\TeamsPeach` (Windows), `~/.config/TeamsPeach` (Linux)
|
||||
|
||||
## Product and design
|
||||
|
||||
The interface reproduces the installed TeamSpeak 6 client's own design from its source values (see
|
||||
The design contract reproduces the installed TeamSpeak 6 client's source values (see
|
||||
DESIGN.md and `docs/evidence/official-parity/`): a three-pane window with a 270 px navigation sidebar
|
||||
(collapsible to a 62 px rail) listing server connections and saved servers, a 500 px server pane with
|
||||
the server header card and channel tree, and a detail pane with the channel header, stream stage, chat
|
||||
@@ -262,21 +286,15 @@ New profiles default to dark independently of the OS; Light and System remain se
|
||||
official surfaces (notification bell, cloud contacts, myTeamSpeak presence) are intentionally absent;
|
||||
local UID contacts are an independent account-free feature.
|
||||
|
||||
Each pane has the official 44 px window bar as its drag surface; the server pane's bar carries the
|
||||
microphone/speakers toolbar pill. Startup and error views keep a 44 px drag strip. Electron's hidden
|
||||
title bar retains native caption controls in the window-bar colour: Windows/Linux use the
|
||||
window-controls overlay; macOS retains left-side traffic lights.
|
||||
Minimize, maximize/restore, close, system shortcuts and caption double-click belong to the OS, not
|
||||
duplicated JavaScript handlers. Native button accessibility names follow the OS language; the app's
|
||||
title-bar landmark follows English/Russian. Theme changes also update the native overlay colours.
|
||||
Fullscreen content removes the app bar; picture-in-picture remains a separate native window.
|
||||
Only a read-only, trusted top-frame state endpoint is exposed, not generic window control IPC.
|
||||
The native window must retain OS minimize, maximize/restore, close, system shortcuts and caption behavior
|
||||
without fake JavaScript controls. The target app-bar geometry is 44 px and its colors follow the theme;
|
||||
actual caption integration and accessibility require platform-specific evidence. Fullscreen/PiP must not
|
||||
create a second media subscription. Bundled Noto Sans (OFL) and the official blue tint retain the typography
|
||||
and color contract; green indicates a speaker.
|
||||
|
||||
Bundled Noto Sans (OFL) and the official blue tint keep text identical across platforms; 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.
|
||||
Server text remains data, never executable markup. Native services validate commands and media bytes,
|
||||
bind delayed actions to connection/session/UI generations, and own native chooser/path capabilities.
|
||||
No embedded browser, browser sandbox, DOM or renderer/main IPC is part of the runtime architecture.
|
||||
|
||||
## Repository language and evidence
|
||||
|
||||
@@ -289,37 +307,24 @@ Historical JSON captures and screenshots in `docs/evidence/runtime/` retain the
|
||||
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
|
||||
## Checks and evidence
|
||||
|
||||
- `npm test` runs unit tests for contracts such as IPC validation, viewer sessions and stream discovery.
|
||||
- `node --test test/titlebar.test.js` covers native caption configuration, state-event publication,
|
||||
theme-listener cleanup and IPC trust rejection. `node scripts/smoke-titlebar-offscreen.mjs --out <dir>`
|
||||
uses the shared hidden/offscreen harness and a disposable profile for EN/RU, light/dark, System-theme
|
||||
and layout evidence. Native overlay buttons are outside renderer screenshots. Actual OS dragging,
|
||||
Snap layouts, caption double-click, shortcuts and Linux/macOS integration require separate manual
|
||||
platform checks; this smoke never sends OS keys or shows/maximizes/minimizes a window.
|
||||
- `node scripts/smoke-official-shell-offscreen.mjs --out <dir>` measures the actual renderer across EN/RU,
|
||||
dark/light and 1280×900/880×560, including onboarding, connection, chat, all settings, menus and dialogs.
|
||||
Its server data is labelled read-only synthetic IPC, not a live connection or product demonstration.
|
||||
Companion `smoke-stream-stage-offscreen.mjs` measures actual contained image size with generated local
|
||||
WebRTC; `smoke-broadcast-ui-offscreen.mjs` uses generated muted canvas capture, never private pixels.
|
||||
The shared launcher requires an invisible, unfocused, nonfocusable offscreen window, mutes webContents,
|
||||
and rejects packaged main-process code that differs from the current guarded source. Separate disposable
|
||||
profiles prevent these checks from changing normal preferences. Results are evidence only when exercised.
|
||||
- `node scripts/official-pair-capture-offscreen.mjs --out <dir> --sizes 1553x998,1280x800,880x800`
|
||||
compares the actual installed official frontend with TeamsPeach using the same synthetic data.
|
||||
It preserves explicit brand/account/native-caption exceptions, checks painted chat timestamps rather
|
||||
than hidden DOM history, and exercises bottom-anchor/history-reading behavior across window resize.
|
||||
The strict pixel gate currently fails; see `docs/evidence/official-parity/qa-parity-harness.md`.
|
||||
The default matrix uses 1553×998, 1280×800 and the supported 880×800 minimum-width case.
|
||||
- `smoke-identity-offscreen.mjs`, `smoke-information-offscreen.mjs` and `smoke-file-settings-offscreen.mjs`
|
||||
exercise actual local UI, native identity CLI, document navigation and persisted transfer settings.
|
||||
`smoke-notification-groups-offscreen.mjs` checks mute precedence and restart without playing sound.
|
||||
- `smoke-bookmarks-offscreen.mjs` is Windows-specific: real DPAPI save/reveal/restart, safe credential
|
||||
deletion, session-bound channel drops and startup routing with main's server-connect guard retained.
|
||||
`smoke-server-icons-offscreen.mjs` uses the production main grant service with synthetic core replies,
|
||||
not a real server or native file chooser. All accept `--exe <isolated-package> --out <evidence-directory>`.
|
||||
- `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.
|
||||
Native verification uses the Cargo workspace and `xtask` entry points, not the removed browser harness:
|
||||
|
||||
```sh
|
||||
cargo test --release --locked --workspace
|
||||
cargo run -p xtask -- build --target x86_64-pc-windows-msvc --test-harness true
|
||||
cargo run -p xtask -- smoke --target x86_64-pc-windows-msvc --scenario offline-ui --out target/evidence/native-ui
|
||||
cargo run -p xtask -- smoke --target x86_64-pc-windows-msvc --scenario migration --out target/evidence/native-migration
|
||||
cargo run -p xtask -- smoke --target x86_64-pc-windows-msvc --scenario media-loopback --out target/evidence/native-media
|
||||
```
|
||||
|
||||
Use fresh output directories and disposable profiles. Test-harness builds disable real network/device/OS
|
||||
actions and are not release eligible. Generated media proves only its exercised local transport/decoder
|
||||
path. Live official peers, physical capture/playback, visible native windows, OS accessibility,
|
||||
installed upgrades and Asahi/mobile hardware need separately authorized isolated checks.
|
||||
|
||||
`native/compatibility.json` preserves 718 pending acceptance requirements, not pass marks. Historical
|
||||
captures in `docs/evidence/` remain exact records of their original builds; they do not prove native parity.
|
||||
Strict visual comparisons previously failed and are not converted to passes by the stack cutover.
|
||||
See FEATURE_COMPATIBILITY.md for recorded native evidence and explicit remaining prerequisites.
|
||||
Reference in new issue
Block a user