fix makefile to use most recent version of Newtonsoft.Json.dll
This commit is contained in:
parent
4b6b830717
commit
ddd8c7eb1b
1 changed files with 7 additions and 3 deletions
10
makefile
10
makefile
|
@ -1,8 +1,12 @@
|
||||||
all: Program.cs
|
$(eval SHELL:=/bin/bash)
|
||||||
|
|
||||||
|
all: Program.cs
|
||||||
mkdir -p build/
|
mkdir -p build/
|
||||||
nuget restore SteamAuth/SteamAuth/SteamAuth.sln
|
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
|
$(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))
|
||||||
cp SteamAuth/SteamAuth/packages/Newtonsoft.Json.11.0.1/lib/net45/Newtonsoft.Json.dll build/
|
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
|
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
|
||||||
|
|
||||||
run:
|
run:
|
||||||
|
|
Loading…
Reference in a new issue