From 6579503c63107b933024e32927ae25e351345c67 Mon Sep 17 00:00:00 2001 From: Adphi Date: Sat, 1 Feb 2020 15:10:33 +0100 Subject: [PATCH] Makefile: added make version --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index ac6bb9f..a572846 100644 --- a/Makefile +++ b/Makefile @@ -161,3 +161,13 @@ test: composer .PHONY: sign sign: @openssl dgst -sha512 -sign ~/.nextcloud/certificates/occweb.key build/artifacts/appstore/occweb.tar.gz |openssl base64 + +.PHONY: version +version: + @echo "Creating version v$(VERSION)" + @sed -i "s/[0-9a-z.]\{1,\}<\/version>/$(VERSION)<\/version>/g" appinfo/info.xml + @git tag v$(VERSION) + @git push origin v$(VERSION) + @make dist + @echo "\nRelease Signature: \n" + @make sign