Skip to content

Commit

Permalink
0.15.0
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 Sep 9, 2018
1 parent 28865be commit b1e7f58
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
app_name=circles

project_dir=$(CURDIR)/../$(app_name)
build_dir=$(CURDIR)/build/artifacts
appstore_dir=$(build_dir)/appstore
source_dir=$(build_dir)/source
sign_dir=$(build_dir)/sign
package_name=$(app_name)
cert_dir=$(HOME)/.nextcloud/certificates
github_account=nextcloud
version+=0.15.0

all: appstore

release: appstore create-tag
release: appstore github-release github-upload

create-tag:
git tag -s -a v$(version) -m "Tagging the $(version) release."
git push origin v$(version)
github-release:
github-release release \
--user $(github_account) \
--repo $(app_name) \
--tag v$(version) \
--name "$(app_name) v$(version)"

github-upload:
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

clean:
rm -rf $(build_dir)
Expand All @@ -40,7 +51,7 @@ appstore: clean
--exclude=/.scrutinizer.yml \
--exclude=/.travis.yml \
--exclude=/Makefile \
$(project_dir)/ $(sign_dir)/$(app_name)
./ $(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 \
Expand Down

0 comments on commit b1e7f58

Please sign in to comment.