Files
desktop/README.md
2026-05-17 15:16:31 +08:00

43 lines
998 B
Markdown

# WirelessTextSyncer Desktop
Windows tray server for WirelessTextSyncer.
## Stack
- .NET 8
- WinForms tray application
- Fleck WebSocket server
## Development
```powershell
dotnet restore
dotnet build
dotnet run --project .\WirelessTextSyncer.Windows\WirelessTextSyncer.Windows.csproj
```
The initial server listens on `ws://0.0.0.0:8181`.
## Release Build
Build a Windows x64 single-file executable:
```powershell
dotnet publish .\WirelessTextSyncer.Windows\WirelessTextSyncer.Windows.csproj `
-c Release `
-r win-x64 `
--self-contained true `
-p:PublishSingleFile=true `
-p:EnableCompressionInSingleFile=true `
-p:IncludeNativeLibrariesForSelfExtract=true `
-o .\publish\win-x64-single
```
The runnable app is written to:
```text
publish\win-x64-single\WirelessTextSyncer.Windows.exe
```
This build includes the .NET runtime, so the target Windows machine does not need .NET installed. The generated `.pdb` file is only for debugging and is not required to run the app.