Skip to content

Commit

Permalink
0.21.3
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Jul 1, 2021
1 parent dbb97a8 commit 08a33ff
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

### 0.21.3

- escape html in 'shared files by Circles'


### 0.21.2

Expand Down
73 changes: 55 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,34 +1,69 @@
app_name=circles
app_name=Circles

build_dir=$(CURDIR)/build/artifacts
appstore_dir=$(build_dir)/appstore
source_dir=$(build_dir)/source
sign_dir=$(build_dir)/sign
package_name=$(app_name)
package_name=$(shell echo $(app_name) | tr '[:upper:]' '[:lower:]')
cert_dir=$(HOME)/.nextcloud/certificates
github_account=nextcloud
release_account=nextcloud-releases
branch=stable21
version+=0.21.2
version=0.21.3
since_tag=

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)\/$(package_name)@/'); \
github-release release \
--user $(github_account) \
--repo $(app_name) \
--target $(branch) \
--tag v$(version) \
--name "$(app_name) v$(version)"
--user $$release_account \
--repo $(package_name) \
--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/$(package_name)/releases/download/$(version)/$(package_name)-$(version).tar.gz";\
github-release release \
--user $(github_account) \
--repo $(package_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) \
--repo $(app_name) \
--tag v$(version) \
--name "$(app_name)-$(version).tar.gz" \
--file $(build_dir)/$(app_name)-$(version).tar.gz
--user $$release_account \
--repo $(package_name) \
--tag $(version) \
--name "$(package_name)-$(version).tar.gz" \
--file $(build_dir)/$(package_name)-$(version).tar.gz


clean:
rm -rf $(build_dir)
Expand All @@ -37,6 +72,7 @@ clean:
# composer packages
composer:
composer install --prefer-dist
composer upgrade --prefer-dist

appstore: clean composer
mkdir -p $(sign_dir)
Expand All @@ -53,16 +89,17 @@ appstore: clean composer
--exclude=/issue_template.md \
--exclude=/README.md \
--exclude=/composer.json \
--exclude=/testConfiguration.json \
--exclude=/composer.lock \
--exclude=/.gitattributes \
--exclude=/.gitignore \
--exclude=/.scrutinizer.yml \
--exclude=/.travis.yml \
--exclude=/Makefile \
./ $(sign_dir)/$(app_name)
tar -czf $(build_dir)/$(app_name)-$(version).tar.gz \
-C $(sign_dir) $(app_name)
@if [ -f $(cert_dir)/$(app_name).key ]; then \
./ $(sign_dir)/$(package_name)
tar -czf $(build_dir)/$(package_name)-$(version).tar.gz \
-C $(sign_dir) $(package_name)
@if [ -f $(cert_dir)/$(package_name).key ]; then \
echo "Signing package…"; \
openssl dgst -sha512 -sign $(cert_dir)/$(app_name).key $(build_dir)/$(app_name)-$(version).tar.gz | openssl base64; \
openssl dgst -sha512 -sign $(cert_dir)/$(package_name).key $(build_dir)/$(package_name)-$(version).tar.gz | openssl base64; \
fi
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Users won't be able to find this Circle using Nextcloud search engine.
]]>
</description>
<version>0.21.2</version>
<version>0.21.3</version>
<licence>agpl</licence>
<author>Maxence Lange</author>
<types>
Expand Down

0 comments on commit 08a33ff

Please sign in to comment.