Skip to content

Commit

Permalink
Merge pull request #3209 from LibreSign/backport/3208/stable29
Browse files Browse the repository at this point in the history
[stable29] chore: new release
  • Loading branch information
vitormattos committed Jun 25, 2024
2 parents baf4a64 + 6ad107e commit dae07b9
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 22 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/appstore-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
release:
types: [published]

env:
PHP_VERSION: 8.2

jobs:
build_and_publish:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -68,8 +65,9 @@ jobs:
if: ${{ steps.versions.outputs.npmVersion }}
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'

- name: Set up php ${{ env.PHP_VERSION }}
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2
- name: Get php version
id: php-versions
uses: icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
with:
filename: ${{ env.APP_NAME }}/appinfo/info.xml

Expand Down Expand Up @@ -98,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 @@ -144,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 @@ -156,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 @@ -14,6 +14,32 @@ Types of changes:

<!-- changelog-linker -->

## 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 synchronize 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 synchronize 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
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Developed with ❤️ by [LibreCode](https://librecode.coop). Help us transform
* [Donate with GitHub Sponsor: ![Donate using GitHub Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/libresign)
]]></description>
<version>9.0.2</version>
<version>9.1.0</version>
<licence>agpl</licence>
<author mail="[email protected]" homepage="https://librecode.coop">LibreCode</author>
<documentation>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libresign",
"description": "A app for signing documents",
"version": "9.0.2",
"version": "9.1.0",
"license": "agpl",
"private": true,
"scripts": {
Expand Down

0 comments on commit dae07b9

Please sign in to comment.