@@ -87,11 +87,9 @@ updateocp:
8787
8888# Builds the source package for the app store, ignores php and js tests
8989.PHONY : appstore
90- appstore : clean
90+ appstore :
91+ rm -rf $(appstore_build_directory )
9192 mkdir -p $(appstore_sign_dir ) /$(app_name )
92- composer install --no-dev
93- npm ci
94- npm run build
9593 cp -r \
9694 appinfo \
9795 composer \
@@ -104,21 +102,13 @@ appstore: clean
104102 CHANGELOG.md \
105103 LICENSE \
106104 $(appstore_sign_dir ) /$(app_name )
107-
108105 rm $(appstore_sign_dir ) /$(app_name ) /vendor/endroid/qr-code/assets/*
109106 find $(appstore_sign_dir ) /$(app_name ) /vendor/mpdf/mpdf/ttfonts -type f -not -name ' DejaVuSerifCondensed.ttf' -delete
110107 find $(appstore_sign_dir ) /$(app_name ) /vendor/mpdf/mpdf/data/ -type f -delete
111108 rm -rf $(appstore_sign_dir ) /$(app_name ) /img/screenshot/
112109 mkdir -p $(appstore_sign_dir ) /$(app_name ) /tests/fixtures
113110 cp tests/fixtures/small_valid.pdf $(appstore_sign_dir ) /$(app_name ) /tests/fixtures
114111
115- @if [ ! -f $(cert_dir)/$(app_name).crt ]; then \
116- $(occ) libresign:install --all --architecture aarch64 \
117- $(occ) libresign:install --all --architecture x86_64 \
118- $(occ) libresign:developer:sign-setup --privateKey=$(cert_dir)/$(app_name).key \
119- --certificate=$(cert_dir)/$(app_name).crt \
120- fi
121-
122112 @if [ -z "$$GITHUB_ACTION" ]; then \
123113 chown -R www-data:www-data $(appstore_sign_dir)/$(app_name) ; \
124114 fi
@@ -129,6 +119,10 @@ appstore: clean
129119 "https://github.com/nextcloud/app-certificate-requests/raw/master/$(app_name)/$(app_name).crt"; \
130120 fi
131121 @if [ -f $(cert_dir)/$(app_name).key ]; then \
122+ $(occ) libresign:install --all --architecture aarch64; \
123+ $(occ) libresign:install --all --architecture x86_64; \
124+ $(occ) libresign:developer:sign-setup --privateKey=$(cert_dir)/$(app_name).key \
125+ --certificate=$(cert_dir)/$(app_name).crt; \
132126 echo "Signing app files…"; \
133127 $(occ) integrity:sign-app \
134128 --privateKey=$(cert_dir)/$(app_name).key\
0 commit comments