makefile is used by the make command to compile the code for the Agent binary

This commit is contained in:
RecursiveProgrammer 2021-03-05 11:41:43 -06:00 committed by Jared Goodwin
parent 3c394ab346
commit b3ad1671c0

18
Agent/makefile Normal file
View File

@ -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