a generic Makefile target to deploy nuget packages

This commit is contained in:
2018-05-03 09:43:37 +02:00
parent fec28f54af
commit 6f7763d424
4 changed files with 27 additions and 29 deletions

View File

@ -1,11 +1,9 @@
CONFIG=Release
PRJNAME=Yavsc.Server
include ../common.mk
PKGFILENAME=$(PRJNAME).$(VERSION).nupkg
DESTPATH=.
PACKAGE=$(DESTPATH)/$(PKGFILENAME)
BINARY=bin/$(CONFIG)/net451/$(PRJNAME).dll
NUGETSOURCE=$(HOME)/Nupkgs/
# Useless, defaults to the directory name.
#
PRJNAME=Yavsc.Server
$(PACKAGE): $(BINARY)
nuget pack $(PRJNAME).nuspec -Version $(VERSION) -Properties config=$(CONFIG)
@ -19,7 +17,7 @@ $(BINARY): project.lock.json
project.lock.json: project.json
dnu restore
deploy: $(PACKAGE)
deploy-pkg: $(PACKAGE)
cp $(PACKAGE) $(NUGETSOURCE)
.PHONY: $(BINARY)

View File

@ -13,7 +13,7 @@
<projectUrl>https://github.com/pazof/yavsc/README.md</projectUrl>
<iconUrl>https://github.com/pazof/yavsc/blob/vnext/Yavsc/wwwroot/images/yavsc.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description> Some common server side bytes </description>
<description>Some common server side code</description>
<summary></summary>
<tags>yavsc</tags>
<dependencies>
@ -27,4 +27,4 @@
<files>
<file src="bin/$config$/net451/Yavsc.Server.dll" target="lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10" />
</files>
</package>
</package>