2024-10-26 12:15:44 +02:00
|
|
|
USER := $(shell cat user.secret)
|
|
|
|
PASSWORD := $(shell cat password.secret)
|
|
|
|
HOST := $(shell cat host.secret)
|
|
|
|
|
2024-12-13 13:08:39 +01:00
|
|
|
|
2024-10-26 12:15:44 +02:00
|
|
|
build:
|
2024-11-06 15:32:32 +01:00
|
|
|
cd src && dotnet build --no-restore
|
2024-12-13 13:08:39 +01:00
|
|
|
|
2024-10-26 12:15:44 +02:00
|
|
|
run:
|
|
|
|
cd entrypoint && dotnet run -- --user ${USER} --password ${PASSWORD} -H ${HOST}
|
2024-12-13 13:08:39 +01:00
|
|
|
|
2024-10-26 12:15:44 +02:00
|
|
|
test:
|
2024-10-28 19:33:36 +01:00
|
|
|
cd tests && dotnet test
|
2024-12-13 13:08:39 +01:00
|
|
|
|
2024-11-06 15:32:32 +01:00
|
|
|
restore:
|
|
|
|
dotnet restore && cd src && dotnet build
|
2024-12-12 11:35:55 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm src/bin src/obj tests/bin tests/obj entrypoint/bin entrypoint/obj -fr
|
2024-12-13 13:08:39 +01:00
|
|
|
|
|
|
|
release:
|
|
|
|
cd entrypoint && dotnet publish -r linux-x64 -p:PublishSingleFile=true --self-contained true -c Release
|
|
|
|
cp entrypoint/bin/Release/net8.0/linux-x64/publish/entrypoint bidello
|