diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-30 18:21:01 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-30 18:21:01 +0300 |
commit | 6ce72843c548f35c95ab3a2ddcaca1dd1faf18c0 (patch) | |
tree | 80569bea5cb589a9b32476f8e3c4e3d0ed2710c2 /Makefile | |
parent | 683d3a0140e9c0491ba41c93150b3aae446ba04f (diff) |
add makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..58c99dd --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +app_name=files_markdown +project_dir=$(CURDIR)/../$(app_name) +build_dir=$(CURDIR)/build/artifacts +sign_dir=$(build_dir)/sign +cert_dir=$(HOME)/.nextcloud/certificates + +all: appstore + +clean: + rm -rf $(build_dir) + +appstore: clean + mkdir -p $(sign_dir) + rsync -a \ + --exclude=.git \ + --exclude=build \ + --exclude=.gitignore \ + --exclude=Makefile \ + --exclude=screenshots \ + --exclude=phpunit*xml \ + $(project_dir) $(sign_dir) + tar -czf $(build_dir)/$(app_name).tar.gz \ + -C $(sign_dir) $(app_name) + openssl dgst -sha512 -sign $(cert_dir)/$(app_name).key $(build_dir)/$(app_name).tar.gz | openssl base64 |