From 34bf68d560665b1c3e36bce75860560ea92afaec Mon Sep 17 00:00:00 2001 From: Salah Eddine Makdour Date: Mon, 10 May 2021 18:12:25 +0100 Subject: [PATCH 1/2] fixed Missing file specifications error fix #54 --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 737a920..fae864f 100644 --- a/makefile +++ b/makefile @@ -1,10 +1,10 @@ $(eval SHELL:=/bin/bash) + +NEWTONSOFT_JSON_PATH="./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net45/Newtonsoft.Json.dll" all: Program.cs mkdir -p build/ nuget restore SteamAuth/SteamAuth/SteamAuth.sln - $(eval NEWTONSOFT_JSON_PATH=$(shell find -name Newtonsoft.Json.dll | grep \/net45\/ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1)) - echo "NEWTONSOFT_JSON_PATH=$(NEWTONSOFT_JSON_PATH)" mcs -target:library -out:build/SteamAuth.dll -r:$(NEWTONSOFT_JSON_PATH) 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 $(NEWTONSOFT_JSON_PATH) build/ mcs -out:build/steamguard -r:build/SteamAuth.dll -r:build/Newtonsoft.Json.dll -r:/usr/lib/mono/4.5/System.Security.dll Program.cs Manifest.cs AssemblyInfo.cs Utils.cs From ca22c634acb1adbe24d16a4eda33d00b3cf31334 Mon Sep 17 00:00:00 2001 From: Salah Eddine Makdour Date: Tue, 11 May 2021 16:54:37 +0100 Subject: [PATCH 2/2] fixed Missing file specifications error I have figured it out `echo "NEWTONSOFT_JSON_PATH=$(NEWTONSOFT_JSON_PATH)"` this line was breaking it, it was setting it to an empty string, removing it fixes everything, without even needing to use a makefile variable. --- makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index fae864f..2ca7a4e 100644 --- a/makefile +++ b/makefile @@ -1,10 +1,9 @@ -$(eval SHELL:=/bin/bash) - -NEWTONSOFT_JSON_PATH="./SteamAuth/SteamAuth/packages/Newtonsoft.Json.12.0.3/lib/net45/Newtonsoft.Json.dll" +$(eval SHELL:=/bin/bash) all: Program.cs mkdir -p build/ nuget restore SteamAuth/SteamAuth/SteamAuth.sln + $(eval NEWTONSOFT_JSON_PATH=$(shell find -name Newtonsoft.Json.dll | grep \/net45\/ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1)) mcs -target:library -out:build/SteamAuth.dll -r:$(NEWTONSOFT_JSON_PATH) 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 $(NEWTONSOFT_JSON_PATH) build/ mcs -out:build/steamguard -r:build/SteamAuth.dll -r:build/Newtonsoft.Json.dll -r:/usr/lib/mono/4.5/System.Security.dll Program.cs Manifest.cs AssemblyInfo.cs Utils.cs