diff --git a/.github/workflows/appstore-build-publish.yml b/.github/workflows/appstore-build-publish.yml index 57db3c4818..dfe21a5eff 100644 --- a/.github/workflows/appstore-build-publish.yml +++ b/.github/workflows/appstore-build-publish.yml @@ -96,7 +96,6 @@ jobs: if: ${{ steps.versions.outputs.nodeVersion }} env: CYPRESS_INSTALL_BINARY: 0 - NODE_ENV: production run: | cd ${{ env.APP_NAME }} npm ci @@ -142,6 +141,23 @@ jobs: repository: nextcloud/server path: nextcloud + - name: Set up Nextcloud + env: + DB_PORT: 4444 + run: | + php nextcloud/occ maintenance:install \ + --verbose \ + --database=sqlite \ + --database-name=nextcloud \ + --database-host=127.0.0.1 \ + --database-port=$DB_PORT \ + --database-user=root \ + --database-pass=rootpassword \ + --admin-user admin \ + --admin-pass admin + php nextcloud/occ --version + php nextcloud/occ app:enable --force ${{ env.APP_NAME }} + - name: Sign app run: | # Extracting release @@ -152,8 +168,10 @@ jobs: echo '${{ secrets.APP_PRIVATE_KEY }}' > ${{ env.APP_NAME }}.key wget --quiet "https://github.com/nextcloud/app-certificate-requests/raw/master/${{ env.APP_NAME }}/${{ env.APP_NAME }}.crt" # Signing + php nextcloud/occ libresign:install --help php nextcloud/occ libresign:install --all --architecture aarch64 php nextcloud/occ libresign:install --all --architecture x86_64 + php nextcloud/occ config:system:set debug --value true --type boolean php nextcloud/occ libresign:developer:sign-setup --privateKey=../${{ env.APP_NAME }}.key --certificate=../${{ env.APP_NAME }}.crt php nextcloud/occ integrity:sign-app --privateKey=../${{ env.APP_NAME }}.key --certificate=../${{ env.APP_NAME }}.crt --path=../${{ env.APP_NAME }}/build/artifacts/${{ env.APP_NAME }} # Rebuilding archive diff --git a/CHANGELOG.md b/CHANGELOG.md index e28704322e..07d2a4e47d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,32 @@ Types of changes: ## 10.0.0-beta.1 * 📲 New API documentation +## 9.1.0 - 2024-06-24 +### New feature +* Clean old setup binaries +* API documentation generated by OpenAPI moved to Nextcloud pattern +* Hide sidebar when is incomplete setup +### Changed +* Update translations +* Bump packages +* Clean code +### Fixes +* Prevent error when synchonize with windows +* Prevent error when delete visible signature + +## 8.1.0 - 2024-06-24 +### New feature +* Clean old setup binaries +* API documentation generated by OpenAPI moved to Nextcloud pattern +* Hide sidebar when is incomplete setup +### Changed +* Update translations +* Bump packages +* Clean code +### Fixes +* Prevent error when synchonize with windows +* Prevent error when delete visible signature + ## 9.0.2 - 2024-05-10 ### New feature * feat: finish setup in https://github.com/LibreSign/libresign/pull/3039 diff --git a/Makefile b/Makefile index b13f213c03..0f6aae47fb 100644 --- a/Makefile +++ b/Makefile @@ -87,11 +87,9 @@ updateocp: # Builds the source package for the app store, ignores php and js tests .PHONY: appstore -appstore: clean +appstore: + rm -rf $(appstore_build_directory) mkdir -p $(appstore_sign_dir)/$(app_name) - composer install --no-dev - npm ci - npm run build cp -r \ appinfo \ composer \ @@ -104,7 +102,6 @@ appstore: clean CHANGELOG.md \ LICENSE \ $(appstore_sign_dir)/$(app_name) - rm $(appstore_sign_dir)/$(app_name)/vendor/endroid/qr-code/assets/* find $(appstore_sign_dir)/$(app_name)/vendor/mpdf/mpdf/ttfonts -type f -not -name 'DejaVuSerifCondensed.ttf' -delete find $(appstore_sign_dir)/$(app_name)/vendor/mpdf/mpdf/data/ -type f -delete @@ -112,13 +109,6 @@ appstore: clean mkdir -p $(appstore_sign_dir)/$(app_name)/tests/fixtures cp tests/fixtures/small_valid.pdf $(appstore_sign_dir)/$(app_name)/tests/fixtures - @if [ ! -f $(cert_dir)/$(app_name).crt ]; then \ - $(occ) libresign:install --all --architecture aarch64 \ - $(occ) libresign:install --all --architecture x86_64 \ - $(occ) libresign:developer:sign-setup --privateKey=$(cert_dir)/$(app_name).key \ - --certificate=$(cert_dir)/$(app_name).crt \ - fi - @if [ -z "$$GITHUB_ACTION" ]; then \ chown -R www-data:www-data $(appstore_sign_dir)/$(app_name) ; \ fi @@ -129,6 +119,10 @@ appstore: clean "https://github.com/nextcloud/app-certificate-requests/raw/master/$(app_name)/$(app_name).crt"; \ fi @if [ -f $(cert_dir)/$(app_name).key ]; then \ + $(occ) libresign:install --all --architecture aarch64; \ + $(occ) libresign:install --all --architecture x86_64; \ + $(occ) libresign:developer:sign-setup --privateKey=$(cert_dir)/$(app_name).key \ + --certificate=$(cert_dir)/$(app_name).crt; \ echo "Signing app files…"; \ $(occ) integrity:sign-app \ --privateKey=$(cert_dir)/$(app_name).key\