isn/Makefile

47 lines
1.0 KiB
Makefile

1 year ago
CONFIGURATION=Debug
TARGETFV=net7.0
all: build-isn build-isnd
build-%: src/%
dotnet build -p:Configuration=$(CONFIGURATION) $^
pack-%: src/%
dotnet pack $^
watch:
dotnet watch --project=src/isnd
test-push:
1 year ago
isn push src/isn/bin/Debug/isn.*.nupkg
1 year ago
clean-%: src/%
rm -rf $^/bin $^/obj
1 year ago
packs: pack-isn pack-isnd pack-isn.abst
1 year ago
clean: clean-isnd clean-isn clean-isn.abst
TARGETFRAMEWORK=net8.0
1 year ago
server-update:
6 months ago
dotnet build -c Release src/isnd
dotnet publish -c Release -f $(TARGETFRAMEWORK) src/isnd
1 year ago
sudo systemctl stop isnd
sudo cp -a src/isnd/bin/Release/$(TARGETFRAMEWORK)/publish/* /srv/www/isnd
1 year ago
sudo systemctl start isnd
1 year ago
6 months ago
client-update:
dotnet build -c Release src/isn
# MAJ du client
sudo cp -a src/isn/bin/Release/$(TARGETFRAMEWORK)/* /usr/local/lib/isn
6 months ago
sudo chown -R root:root /usr/local/lib/isn
src/isn.abst/bin/Release/isn.abst.1.0.24.nupkg:
dotnet pack src/isn.abst -c Release
push-test: src/isn.abst/bin/Release/isn.abst.1.0.24.nupkg
isn push -s "http://localhost:3002/v3/index.json" src/isn.abst/bin/Release/isn.abst.1.0.24.nupkg