Skip to content

Commit

Permalink
Makefile: use version from app-info
Browse files Browse the repository at this point in the history
Signed-off-by: Adphi <[email protected]>
  • Loading branch information
Adphi committed Aug 22, 2023
1 parent 66c8231 commit 1e3e6a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,15 @@ test: composer
sign:
@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
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
Expand Down

0 comments on commit 1e3e6a6

Please sign in to comment.