isn/Makefile

47 lines
1.0 KiB
Makefile

3 years 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:
3 years ago
isn push src/isn/bin/Debug/isn.*.nupkg
3 years ago
clean-%: src/%
rm -rf $^/bin $^/obj
3 years ago
packs: pack-isn pack-isnd pack-isn.abst
3 years ago
clean: clean-isnd clean-isn clean-isn.abst
TARGETFRAMEWORK=net8.0
3 years ago
server-update:
2 years ago
dotnet build -c Release src/isnd
dotnet publish -c Release -f $(TARGETFRAMEWORK) src/isnd
3 years ago
sudo systemctl stop isnd
sudo cp -a src/isnd/bin/Release/$(TARGETFRAMEWORK)/publish/* /srv/www/isnd
3 years ago
sudo systemctl start isnd
3 years ago
2 years ago
client-update:
dotnet build -c Release src/isn
# MAJ du client
sudo cp -a src/isn/bin/Release/$(TARGETFRAMEWORK)/* /usr/local/lib/isn
2 years 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