Browse Source

Makefile: added make version

Adphi 9 months ago
parent
commit
6579503c63
1 changed files with 10 additions and 0 deletions
  1. 10 0
      Makefile

+ 10 - 0
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/<version>[0-9a-z.]\{1,\}<\/version>/<version>$(VERSION)<\/version>/g" appinfo/info.xml
+	@git tag v$(VERSION)
+	@git push origin v$(VERSION)
+	@make dist
+	@echo "\nRelease Signature: \n"
+	@make sign