Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/icewind1991/files_markdown.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-11-30 18:21:01 +0300
committerRobin Appelman <robin@icewind.nl>2016-11-30 18:21:01 +0300
commit6ce72843c548f35c95ab3a2ddcaca1dd1faf18c0 (patch)
tree80569bea5cb589a9b32476f8e3c4e3d0ed2710c2 /Makefile
parent683d3a0140e9c0491ba41c93150b3aae446ba04f (diff)
add makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
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