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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-12-07 11:21:14 +0300
committerLukas Reschke <lukas@statuscode.ch>2016-12-07 11:21:14 +0300
commit845c749851802146d6cbce4de386286f2339f6bc (patch)
tree94dc4ee388dd91f9c815a509a8702b16a220cc74
parent58134ab0a2e6673bb3399f793abeaf6a588eaf7f (diff)
Add makefile for appstore and new git ignore
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
-rw-r--r--.gitignore1
-rw-r--r--Makefile36
2 files changed, 37 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index fd88918b..19e89a6a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ tests/clover.xml
*.spec
*.tar.gz
richdocuments.zip
+build/ \ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..38a6b585
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+# Makefile for building the project
+
+app_name=richdocuments
+project_dir=$(CURDIR)/../$(app_name)
+build_dir=$(CURDIR)/build/artifacts
+sign_dir=$(build_dir)/sign
+appstore_dir=$(build_dir)/appstore
+source_dir=$(build_dir)/source
+package_name=$(app_name)
+cert_dir=$(HOME)/.nextcloud/certificates
+
+appstore:
+ mkdir -p $(sign_dir)
+ rsync -a \
+ --exclude=.git \
+ --exclude=build \
+ --exclude=.gitignore \
+ --exclude=.travis.yml \
+ --exclude=.scrutinizer.yml \
+ --exclude=CONTRIBUTING.md \
+ --exclude=composer.json \
+ --exclude=composer.lock \
+ --exclude=composer.phar \
+ --exclude=l10n/.tx \
+ --exclude=l10n/no-php \
+ --exclude=Makefile \
+ --exclude=nbproject \
+ --exclude=screenshots \
+ --exclude=phpunit*xml \
+ --exclude=tests \
+ --exclude=vendor/bin \
+ $(project_dir) $(sign_dir)
+ @echo "Signing…"
+ 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 \ No newline at end of file