Retire legacy implementations and flatten managed layout
Build and test / test (macos-latest) (push) Canceled after 0s
Build and test / test (ubuntu-24.04) (push) Canceled after 0s
Build and test / test (windows-latest) (push) Canceled after 0s
Build and test / apple-client (push) Canceled after 0s

This commit is contained in:
2026-09-21 00:11:32 +02:00
parent dd811a0bb8
commit 08e6c5930a
422 changed files with 252 additions and 38242 deletions
+9 -31
View File
@@ -1,43 +1,21 @@
# VoiceCat — Windows client
# Windows client
The WinForms .NET 10 client uses `VoiceCat.Core` for TLS, TOFU, protocol state and encrypted UDP, and `VoiceCat.Audio` for streams, jitter, Opus and mixing. Its only native runtime component is `voicecat_media.dll`, the narrow Opus/RNNoise C shim. The old `voicecat.dll` core is no longer loaded or published.
## Build
Stage the pinned native media dependencies once, then build the solution:
The .NET 10 WinForms client uses `VoiceCat.Core` and `VoiceCat.Audio`. Its only native runtime
component is `voicecat_media.dll`, the narrow Opus/RNNoise shim.
```powershell
./dotnet/build-native.ps1
./scripts/build-native.ps1
dotnet restore clients/windows/VoiceCat.slnx --locked-mode
dotnet build clients/windows/VoiceCat.slnx -c Release --no-restore
```
The original `VoiceCat.Interop` project remains in the repository as a migration oracle. The app references `VoiceCat.Managed`, whose compatibility facade lets the existing accessible WinForms UI keep its event-pump shape while all networking and audio state live in the idiomatic managed libraries.
## Publish
```powershell
./clients/windows/publish-client.ps1
```
This produces a self-contained `win-x64` distribution in `dotnet/artifacts/client/win-x64`. The script requires `voicecat_media.dll` and fails if the legacy `voicecat.dll` appears.
The noninteractive startup and real WASAPI device check is:
Publishing produces `artifacts/client/win-x64`. The noninteractive form and WASAPI device gate
is:
```powershell
./dotnet/artifacts/client/win-x64/VoiceCat.App.exe --smoke-test --audio
./artifacts/client/win-x64/VoiceCat.App.exe --smoke-test --audio
```
`--smoke-test` constructs the real main form and pumps the managed client. `--audio` additionally opens the default WASAPI capture and render endpoints, moves PCM through both for three seconds, and fails if capture produces no samples.
## Run manually
```powershell
# Terminal 1
./dotnet/artifacts/server/win-x64/VoiceCat.Server.exe
# Terminal 2
dotnet run --project clients/windows/VoiceCat.App/VoiceCat.App.csproj
```
Manual release validation includes NVDA navigation and a sustained two-client listen test, as tracked in `docs/roadmap.md`.
Manual release validation includes keyboard operation, NVDA navigation, curated announcements,
and a sustained real call.