summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2021-02-02 21:42:30 +0100
committerBenjamin Brahmer <info@b-brahmer.de>2021-02-02 22:00:34 +0100
commita6a66fe0fd669b807d5827168885fd76395fca59 (patch)
tree4d7d39fd5ee2f4c7bb456f3ff6a881f9b0f39f13 /Makefile
parente601f07ee6a85e44c89d80855fc2aa2ab98f9774 (diff)
Composer: Remove unneeded files in releases
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1da8c697b..524a6965a 100644
--- a/Makefile
+++ b/Makefile
@@ -143,7 +143,7 @@ endif
.PHONY: appstore
appstore:
rm -rf $(appstore_build_directory) $(appstore_sign_dir) $(appstore_artifact_directory)
- mkdir -p $(appstore_sign_dir)/$(app_name)
+ install -d $(appstore_sign_dir)/$(app_name)
cp -r \
"appinfo" \
"css" \
@@ -152,11 +152,15 @@ appstore:
"lib" \
"templates" \
"vendor" \
- "COPYING" \
- "AUTHORS.md" \
- "CHANGELOG.md" \
$(appstore_sign_dir)/$(app_name)
+ #remove composer binaries, those aren't needed
+ rm -rf $(appstore_sign_dir)/$(app_name)/vendor/bin
+
+ install "COPYING" $(appstore_sign_dir)/$(app_name)
+ install "AUTHORS.md" $(appstore_sign_dir)/$(app_name)
+ install "CHANGELOG.md" $(appstore_sign_dir)/$(app_name)
+
#remove stray .htaccess files since they are filtered by nextcloud
find $(appstore_sign_dir) -name .htaccess -exec rm {} \;