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

github.com/nextcloud/files_rightclick.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNastuzziSamy <samy@nastuzzi.fr>2019-01-17 02:08:59 +0300
committerNastuzziSamy <samy@nastuzzi.fr>2019-01-17 02:08:59 +0300
commit16e2496056134658e4fe68ed558df7cf57ef74b2 (patch)
tree8ebe1a01e4227fd95eff976fb386b144cc480872 /Makefile
parent6d0c06dad7703af735c4b69472a40474b2ffb9e6 (diff)
Add makefile and upgrate to v0.10.0v0.10.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a9190ca
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+app_name=files_rightclick
+project_dir=$(CURDIR)/../$(app_name)
+build_dir=$(CURDIR)/build
+sign_dir=$(build_dir)/artifacts
+cert_dir=$(HOME)/.nextcloud/certificates
+
+all: appstore
+
+clean:
+ rm -rf $(build_dir)
+
+appstore: clean
+ mkdir -p $(sign_dir)
+ rsync -a \
+ --exclude=.* \
+ --exclude=build \
+ --exclude=CONTRIBUTING.md \
+ --exclude=composer.json \
+ --exclude=composer.lock \
+ --exclude=composer.phar \
+ --exclude=l10n/.tx \
+ --exclude=l10n/no-php \
+ --exclude=Makefile \
+ --exclude=screenshots \
+ --exclude=phpunit*xml \
+ --exclude=tests \
+ --exclude=vendor/bin \
+ $(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 > $(build_dir)/$(app_name).b64
+ rm -rf $(build_dir)/artifacts
+ cat $(build_dir)/$(app_name).b64 \