From 8815121cff07abc134987cdae984a15a04e48de7 Mon Sep 17 00:00:00 2001 From: Alex <37449977+amdev0@users.noreply.github.com> Date: Wed, 13 Jun 2018 19:37:49 -0400 Subject: [PATCH 1/2] fix #36 trade action behavior on a specific account * Fix trade action behavior on a specific account * Replace break statement with continue instead --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 65ac3b5..d378fc3 100644 --- a/Program.cs +++ b/Program.cs @@ -540,7 +540,7 @@ namespace SteamGuard { if (user != "") if (!string.Equals(account.AccountName, user, StringComparison.CurrentCultureIgnoreCase)) - break; + continue; processConfirmations(account); } From 1a2feaf853a71a947ea0c06a88f85da80f608423 Mon Sep 17 00:00:00 2001 From: "Sean P. Kane" Date: Mon, 27 Jan 2020 17:43:25 -0400 Subject: [PATCH 2/2] Add macOS support documentation --- README.md | 28 ++++++++++++++++++++++++++++ makefile.macos | 24 ++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 makefile.macos diff --git a/README.md b/README.md index 0dbe32b..e0f630c 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,34 @@ To run the current build quickly: make run +## macOS + +Building on macOS is pretty simple. Make sure you have all the prerequisites listed above. + +* For the prerequisites the easiest way to install them is to use [homebrew](https://brew.sh/): + + brew update + brew install mono + brew install nuget + +* For the application source code: + + git clone --recursive https://github.com/dyc3/steamguard-cli.git + cd steamguard-cli + make -f makefile.macos + +To run the current build: + + mono build/steamguard + +To run the current build quickly: + + make -f makefile.macos run + +To install run: + + make -f makefile.macos install + ## Windows Coming soon... diff --git a/makefile.macos b/makefile.macos new file mode 100644 index 0000000..e1b7bce --- /dev/null +++ b/makefile.macos @@ -0,0 +1,24 @@ +all: Program.cs + mkdir -p build/ + nuget restore SteamAuth/SteamAuth/SteamAuth.sln + mcs -target:library -out:build/SteamAuth.dll -r:SteamAuth/SteamAuth/packages/Newtonsoft.Json.11.0.1/lib/net45/Newtonsoft.Json.dll SteamAuth/SteamAuth/APIEndpoints.cs SteamAuth/SteamAuth/AuthenticatorLinker.cs SteamAuth/SteamAuth/Confirmation.cs SteamAuth/SteamAuth/SessionData.cs SteamAuth/SteamAuth/SteamGuardAccount.cs SteamAuth/SteamAuth/SteamWeb.cs SteamAuth/SteamAuth/TimeAligner.cs SteamAuth/SteamAuth/UserLogin.cs SteamAuth/SteamAuth/Util.cs SteamAuth/SteamAuth/Properties/AssemblyInfo.cs + cp SteamAuth/SteamAuth/packages/Newtonsoft.Json.11.0.1/lib/net45/Newtonsoft.Json.dll build/ + mcs -out:build/steamguard -r:build/SteamAuth.dll -r:build/Newtonsoft.Json.dll -r:/usr/local/lib/mono/4.5/System.Security.dll Program.cs Manifest.cs AssemblyInfo.cs Utils.cs + +run: + mono build/steamguard -v + +clean: + rm -r build/ + +install: + cp build/steamguard /usr/local/bin/ + cp build/Newtonsoft.Json.dll /usr/local/bin/ + cp build/SteamAuth.dll /usr/local/bin/ + cp bash-tab-completion /etc/bash_completion.d/steamguard + +uninstall: + rm -f /usr/local/bin/steamguard + rm -f /usr/local/bin/Newtonsoft.Json.dll + rm -f /usr/local/bin/SteamAuth.dll + rm -f /etc/bash_completion.d/steamguard