Skip to content

Commit

Permalink
Merge pull request #3208 from LibreSign/chore/release
Browse files Browse the repository at this point in the history
chore: new release
  • Loading branch information
vitormattos committed Jun 25, 2024
2 parents 90e2da7 + 89eeb2b commit cae8ce7
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 13 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/appstore-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -142,6 +141,24 @@ jobs:
repository: nextcloud/server
path: nextcloud

- name: Set up Nextcloud
env:
DB_PORT: 4444
run: |
tar -xvf ${{ env.APP_NAME }}/build/artifacts/${{ env.APP_NAME }}.tar.gz -C nextcloud/apps/
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
Expand All @@ -154,6 +171,7 @@ jobs:
# Signing
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
Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 6 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -104,21 +102,13 @@ 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
rm -rf $(appstore_sign_dir)/$(app_name)/img/screenshot/
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
Expand All @@ -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\
Expand Down

0 comments on commit cae8ce7

Please sign in to comment.