mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
3aa0b55512
The single Copy button left it on the user to format a message and
get the code into Discord/email. Added a layout that makes sharing
obvious:
- QR encodes the join code text so a friend with a phone can scan
the host's screen and forward the code without typing it
- "Copy as message" formats a one-line "Join {server} on DorkNet!
Download at github.com/... and paste this code:" pitch
- "Email to friend" opens the default mail client with subject +
body prefilled, code in the body
- QR built via QRCoder -> WriteableBitmap directly (no
System.Drawing dependency); palette matches the launcher
31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net9.0-windows</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<UseWPF>true</UseWPF>
|
|
<RootNamespace>DorkNet.Launcher</RootNamespace>
|
|
<AssemblyName>dorknet</AssemblyName>
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
<PublishSingleFile>true</PublishSingleFile>
|
|
<SelfContained>true</SelfContained>
|
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
|
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
|
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
|
|
</PropertyGroup>
|
|
|
|
<!-- WPF is built into the .NET 9 Windows SDK; no NuGet package needed.
|
|
The Backend/* classes (release downloader, server process, etc.) are
|
|
UI-framework-agnostic and stay unchanged from the PhotinoNET draft. -->
|
|
|
|
<ItemGroup>
|
|
<!-- QR rendering for the share panel — generates the code as raw
|
|
module bytes, MainWindow draws it onto a WPF Image. No System.Drawing
|
|
dependency that way, so it stays portable. -->
|
|
<PackageReference Include="QRCoder" Version="1.6.0" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|