From fb38faf566e0d4879a8033e094f350c9e2142202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 17 Mar 2020 21:03:23 +0000 Subject: [PATCH 1/5] Upgrade riot to 1.5.13 --- README.md | 2 +- conf/app.src | 4 ++-- manifest.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4279992..2dc085c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ It's a webclient for matrix. For a matrix server you can install synapse on your Yunohost chattroom with matrix : [https://riot.im/app/#/room/#yunohost:matrix.org](https://riot.im/app/#/room/#yunohost:matrix.org) -**Shipped version:** 1.5.12 +**Shipped version:** 1.5.13 Screenshots ----------- diff --git a/conf/app.src b/conf/app.src index deef562..ab1e5e4 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/vector-im/riot-web/releases/download/v1.5.12/riot-v1.5.12.tar.gz -SOURCE_SUM=6671cb71084e34f5ca1e00ff69879bf38106ace4b0f3677ff3880caa337c9f18 +SOURCE_URL=https://github.com/vector-im/riot-web/releases/download/v1.5.13/riot-v1.5.13.tar.gz +SOURCE_SUM=4db9f57d9b104f33b2e93bab917206e5b6d4f009c51a76a32ada9e9d93bbf075 # (Optional) Program to check the integrity (sha256sum, md5sum...) # default: sha256 SOURCE_SUM_PRG=sha256sum diff --git a/manifest.json b/manifest.json index e54c7b5..5a1f899 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "en": "A web client for matrix", "fr": "Un client web pour matrix" }, - "version": "1.5.12~ynh1", + "version": "1.5.13~ynh1", "url": "https://riot.im", "license": "Apache-2.0", "maintainer": { From fc28a504c8ecc0278aa8437fdba7d0d5bb895ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 30 Mar 2020 20:03:27 +0000 Subject: [PATCH 2/5] Upgrade riot to 1.5.14 --- README.md | 2 +- conf/app.src | 4 ++-- manifest.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2dc085c..05bc45c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ It's a webclient for matrix. For a matrix server you can install synapse on your Yunohost chattroom with matrix : [https://riot.im/app/#/room/#yunohost:matrix.org](https://riot.im/app/#/room/#yunohost:matrix.org) -**Shipped version:** 1.5.13 +**Shipped version:** 1.5.14 Screenshots ----------- diff --git a/conf/app.src b/conf/app.src index ab1e5e4..889f0ff 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/vector-im/riot-web/releases/download/v1.5.13/riot-v1.5.13.tar.gz -SOURCE_SUM=4db9f57d9b104f33b2e93bab917206e5b6d4f009c51a76a32ada9e9d93bbf075 +SOURCE_URL=https://github.com/vector-im/riot-web/releases/download/v1.5.14/riot-v1.5.14.tar.gz +SOURCE_SUM=b00ee71c9bd1a4111e4a54b1995b71e4af60040785190e1bf2c4af9732cd18b7 # (Optional) Program to check the integrity (sha256sum, md5sum...) # default: sha256 SOURCE_SUM_PRG=sha256sum diff --git a/manifest.json b/manifest.json index 5a1f899..7837a45 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "en": "A web client for matrix", "fr": "Un client web pour matrix" }, - "version": "1.5.13~ynh1", + "version": "1.5.14~ynh1", "url": "https://riot.im", "license": "Apache-2.0", "maintainer": { From 60f3584c5ecf889a59c25503cee08a4953410512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 25 Mar 2020 16:20:19 +0100 Subject: [PATCH 3/5] Add permission support --- manifest.json | 2 +- scripts/install | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 7837a45..8960822 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "id": "riot", "packaging_format": 1, "requirements": { - "yunohost": ">= 3.5.2.2" + "yunohost": ">= 3.7.0.6" }, "description": { "en": "A web client for matrix", diff --git a/scripts/install b/scripts/install index 3686ae5..5bb4bb4 100644 --- a/scripts/install +++ b/scripts/install @@ -57,11 +57,9 @@ ynh_script_progression --message="Protecting directory" set_permission ynh_script_progression --message="Configuring permissions" -if [ "$is_public" = "0" ]; -then # Retire l'accès public - ynh_app_setting_delete --app $app --key skipped_uris -else - ynh_app_setting_set --app $app --key unprotected_uris --value "/" +if [ "$is_public" == '1' ]; +then + ynh_permission_update --permission "main" --add "visitors" fi # Recharge la configuration Nginx From e326c0bdb639e76cbe509038d7f4546339a3f2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 1 Apr 2020 20:26:36 +0200 Subject: [PATCH 4/5] Clean riot directory before upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index e7a586f..28ee8d0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -28,7 +28,7 @@ default_home_server=$(ynh_app_setting_get --app $app --key default_home_server) # Get source and install in source dir ynh_script_progression --message="Upgrading source files..." --weight=6 -ynh_secure_remove --file=$final_path/bundles +ynh_secure_remove --file=$final_path install_source ynh_script_progression --message="Configuring application..." From c78c2331d4124b387e5187d103197f763d81d2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 1 Apr 2020 20:03:29 +0000 Subject: [PATCH 5/5] Upgrade riot to 1.5.15 --- README.md | 2 +- conf/app.src | 4 ++-- manifest.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 05bc45c..fb3be7b 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ It's a webclient for matrix. For a matrix server you can install synapse on your Yunohost chattroom with matrix : [https://riot.im/app/#/room/#yunohost:matrix.org](https://riot.im/app/#/room/#yunohost:matrix.org) -**Shipped version:** 1.5.14 +**Shipped version:** 1.5.15 Screenshots ----------- diff --git a/conf/app.src b/conf/app.src index 889f0ff..c4286ab 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/vector-im/riot-web/releases/download/v1.5.14/riot-v1.5.14.tar.gz -SOURCE_SUM=b00ee71c9bd1a4111e4a54b1995b71e4af60040785190e1bf2c4af9732cd18b7 +SOURCE_URL=https://github.com/vector-im/riot-web/releases/download/v1.5.15/riot-v1.5.15.tar.gz +SOURCE_SUM=071a0497690bf7369d6439b15d8c1c95ae5a81c5164ae61b254cd46268a04925 # (Optional) Program to check the integrity (sha256sum, md5sum...) # default: sha256 SOURCE_SUM_PRG=sha256sum diff --git a/manifest.json b/manifest.json index 8960822..47554b9 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "en": "A web client for matrix", "fr": "Un client web pour matrix" }, - "version": "1.5.14~ynh1", + "version": "1.5.15~ynh1", "url": "https://riot.im", "license": "Apache-2.0", "maintainer": {