Makefile: use version from app-info

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
Adphi
2023-08-22 12:46:39 +02:00
parent 66c823195c
commit 1e3e6a62ed
+6 -1
View File
@@ -162,10 +162,15 @@ test: composer
sign: sign:
@openssl dgst -sha512 -sign ~/.nextcloud/certificates/occweb.key build/artifacts/appstore/occweb.tar.gz |openssl base64 @openssl dgst -sha512 -sign ~/.nextcloud/certificates/occweb.key build/artifacts/appstore/occweb.tar.gz |openssl base64
VERSION := $(shell xpath -q -e "//info/version/text()" appinfo/info.xml)
.PHONY: show-version
show-version:
@echo $(VERSION)
.PHONY: version .PHONY: version
version: version:
@echo "Creating version v$(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 tag v$(VERSION)
@git push origin v$(VERSION) @git push origin v$(VERSION)
@make dist @make dist