From df7d9ff28661c0a75035b1faaf2ae66e4d61b078 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Mon, 3 Jun 2024 20:45:58 +0200 Subject: [PATCH] [chore] remove QRCode deps + self-contained app + trimmed --- DepotDownloader/DepotDownloader.csproj | 4 ++-- .../PublishProfiles/FolderProfile.pubxml | 21 +++++++++++++++++++ DepotDownloader/Steam3Session.cs | 13 ------------ 3 files changed, 23 insertions(+), 15 deletions(-) create mode 100644 DepotDownloader/Properties/PublishProfiles/FolderProfile.pubxml diff --git a/DepotDownloader/DepotDownloader.csproj b/DepotDownloader/DepotDownloader.csproj index 98ded2a7..db518ac9 100644 --- a/DepotDownloader/DepotDownloader.csproj +++ b/DepotDownloader/DepotDownloader.csproj @@ -1,4 +1,4 @@ - + Exe net6.0 @@ -12,8 +12,8 @@ + - diff --git a/DepotDownloader/Properties/PublishProfiles/FolderProfile.pubxml b/DepotDownloader/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 00000000..682574d5 --- /dev/null +++ b/DepotDownloader/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,21 @@ + + + + + Release + Any CPU + bin\Release\net6.0\publish\win-x86\ + FileSystem + <_TargetId>Folder + net6.0 + win-x86 + true + true + true + link + true + false + + \ No newline at end of file diff --git a/DepotDownloader/Steam3Session.cs b/DepotDownloader/Steam3Session.cs index 612276d5..7bf74339 100644 --- a/DepotDownloader/Steam3Session.cs +++ b/DepotDownloader/Steam3Session.cs @@ -6,7 +6,6 @@ using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; -using QRCoder; using SteamKit2; using SteamKit2.Authentication; using SteamKit2.Internal; @@ -782,17 +781,5 @@ namespace DepotDownloader // send off our response steamUser.SendMachineAuthResponse(authResponse); } - - private static void DisplayQrCode(string challengeUrl) - { - // Encode the link as a QR code - using var qrGenerator = new QRCodeGenerator(); - var qrCodeData = qrGenerator.CreateQrCode(challengeUrl, QRCodeGenerator.ECCLevel.L); - using var qrCode = new AsciiQRCode(qrCodeData); - var qrCodeAsAsciiArt = qrCode.GetGraphic(1, drawQuietZones: false); - - Console.WriteLine("Use the Steam Mobile App to sign in with this QR code:"); - Console.WriteLine(qrCodeAsAsciiArt); - } } }