diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7be51c8b5..1e6f45a51 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/Makefile b/Makefile
index aa3c7f5d3..97abc4baf 100644
--- a/Makefile
+++ b/Makefile
@@ -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**
$$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**
$$link
**Changelog**
$$changelog
" \
+ --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)
@@ -37,6 +72,7 @@ clean:
# composer packages
composer:
composer install --prefer-dist
+ composer upgrade --prefer-dist
appstore: clean composer
mkdir -p $(sign_dir)
@@ -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
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 151018145..8408285ec 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -23,7 +23,7 @@ Users won't be able to find this Circle using Nextcloud search engine.
]]>
- 0.21.2
+ 0.21.3
agpl
Maxence Lange