From c7229a07b77f401018f577fb7d69c552c53bd01a Mon Sep 17 00:00:00 2001 From: NastuzziSamy Date: Tue, 12 Mar 2019 15:43:44 +0100 Subject: [PATCH] Improve/simplify makefile to publish --- Makefile | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 37f5c7b..f20cc5c 100644 --- a/Makefile +++ b/Makefile @@ -66,18 +66,9 @@ appstore: clean install-deps --exclude=screenshots \ --exclude=tests \ --exclude=vendor/bin \ - $(project_dir)/ $(sign_dir)/$(app_name) - @if [ -f $(cert_dir)/$(app_name).key ]; then \ - echo "Signing app files…"; \ - php ../../occ integrity:sign-app \ - --privateKey=$(cert_dir)/$(app_name).key\ - --certificate=$(cert_dir)/$(app_name).crt\ - --path=$(sign_dir)/$(app_name); \ - fi + $(project_dir) $(sign_dir) tar -czf $(build_dir)/$(app_name).tar.gz \ - -C $(sign_dir) $(app_name) - @if [ -f $(cert_dir)/$(app_name).key ]; then \ - echo "Signing package…"; \ - openssl dgst -sha512 -sign $(cert_dir)/$(app_name).key $(build_dir)/$(app_name).tar.gz | openssl base64 > $(build_dir)/sign.b64; \ - cat $(build_dir)/sign.b64; \ -fi + -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 \