Skip to content

Commit

Permalink
Merge pull request #660 from nextcloud/release/22.0.0-beta.4
Browse files Browse the repository at this point in the history
22.0.0-beta.4
  • Loading branch information
ArtificialOwl authored Jun 29, 2021
2 parents 90a317f + dc06bfe commit ac74982
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 18 deletions.
53 changes: 44 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
app_name=circles
app_name=Circles

build_dir=$(CURDIR)/build/artifacts
appstore_dir=$(build_dir)/appstore
Expand All @@ -7,29 +7,64 @@ sign_dir=$(build_dir)/sign
package_name=$(app_name)
cert_dir=$(HOME)/.nextcloud/certificates
github_account=nextcloud
branch=master
version+=22.0.0-beta.2
release_account=nextcloud-releases
branch=stable22
version=22.0.0-beta.4
since_tag=22.0.0-beta.3

all: appstore

release: appstore github-release github-upload

github-release:
if [ -z "$(release_account)" ]; then \
release_account=$(github_account); \
release_branch=$(branch); \
else \
release_account=$(release_account); \
release_branch=master; \
fi; \
if [ -z "$(since_tag)" ]; then \
latest_tag=$$(git describe --tags `git rev-list --tags --max-count=1`); \
else \
latest_tag=$(since_tag); \
fi; \
comparison="$$latest_tag..HEAD"; \
if [ -z "$$latest_tag" ]; then comparison=""; fi; \
changelog=$$(git log $$comparison --oneline --no-merges | sed -e 's/^/$(github_account)\/$(app_name)@/'); \
github-release release \
--user $(github_account) \
--user $$release_account \
--repo $(app_name) \
--target $(branch) \
--tag v$(version) \
--name "$(app_name) v$(version)"
--target $$release_branch \
--tag $(version) \
--description "**Changelog**<br/>$$changelog" \
--name "$(app_name) v$(version)"; \
if [ $(github_account) != $$release_account ]; then \
link="https://github.com/$$release_account/$(app_name)/releases/download/$(version)/$(app_name)-$(version).tar.gz";\
github-release release \
--user $(github_account) \
--repo $(app_name) \
--target $(branch) \
--tag $(version) \
--description "**Download**<br />$$link<br /><br />**Changelog**<br/>$$changelog<br />" \
--name "$(app_name) v$(version)"; \
fi; \


github-upload:
if [ -z "$(release_account)" ]; then \
release_account=$(github_account); \
else \
release_account=$(release_account); \
fi; \
github-release upload \
--user $(github_account) \
--user $$release_account \
--repo $(app_name) \
--tag v$(version) \
--tag $(version) \
--name "$(app_name)-$(version).tar.gz" \
--file $(build_dir)/$(app_name)-$(version).tar.gz


clean:
rm -rf $(build_dir)
rm -rf node_modules
Expand Down
4 changes: 1 addition & 3 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Those groups of users (or "circles") can then be used by any other app for sharing purpose.
]]>
</description>
<version>22.0.0-beta.2</version>
<version>22.0.0-beta.4</version>
<licence>agpl</licence>
<author>Maxence Lange</author>
<types>
Expand All @@ -32,8 +32,6 @@ Those groups of users (or "circles") can then be used by any other app for shari
<default_enable/>
<background-jobs>
<job>OCA\Circles\Cron\Maintenance</job>
<!-- <job>OCA\Circles\Cron\ContactsExistingShares</job>-->
<!-- <job>OCA\Circles\Cron\GlobalSync</job>-->
</background-jobs>

<repair-steps>
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ac74982

Please sign in to comment.