From b3ad1671c05c9ec96133a992bfe082e45f4e6b84 Mon Sep 17 00:00:00 2001 From: RecursiveProgrammer Date: Fri, 5 Mar 2021 11:41:43 -0600 Subject: [PATCH] makefile is used by the make command to compile the code for the Agent binary --- Agent/makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Agent/makefile diff --git a/Agent/makefile b/Agent/makefile new file mode 100644 index 00000000..9fed76cd --- /dev/null +++ b/Agent/makefile @@ -0,0 +1,18 @@ + +# Notes: +# Possibly use the automake suite to build this, but since this is package is geared towards both Windows and Linux, I do not think it prudent. + +currentversion=2021.03.04 + +all: + @ echo "This is help with compiling the Agent. This assumes you have the dotnet application installed." + @ echo "You should now run: make build" + +build: + #dotnet build Agent.csproj + dotnet publish /p:Version=$(currentversion) /p:FileVersion=$(currentversion) --runtime linux-x64 --configuration Release -p:PublishTrimmed=True --output ".\bin\Release\net5.0\linux-x64\publish" "..\Agent" + +package: + zip -r linux-x64.zip ./bin/Release/net5.0/linux-x64.zip + +