1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diagramsnet_ynh.git synced 2024-09-03 18:26:33 +02:00

Merge pull request #240 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2024-06-18 12:38:03 +02:00 committed by GitHub
commit e5d7fe31e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 16 additions and 26 deletions

View file

@ -19,7 +19,7 @@ It shall NOT be edited by hand.
diagrams.net (formerly draw.io) lets you create a wide range of diagrams, from simple tree and flow diagrams, to highly technical network, rack and electrical diagrams.
**Shipped version:** 24.5.2~ynh1
**Shipped version:** 24.5.5~ynh1
**Demo:** <https://app.diagrams.net/>

View file

@ -19,7 +19,7 @@ No se debe editar a mano.
diagrams.net (formerly draw.io) lets you create a wide range of diagrams, from simple tree and flow diagrams, to highly technical network, rack and electrical diagrams.
**Versión actual:** 24.5.2~ynh1
**Versión actual:** 24.5.5~ynh1
**Demo:** <https://app.diagrams.net/>

View file

@ -19,7 +19,7 @@ EZ editatu eskuz.
diagrams.net (formerly draw.io) lets you create a wide range of diagrams, from simple tree and flow diagrams, to highly technical network, rack and electrical diagrams.
**Paketatutako bertsioa:** 24.5.2~ynh1
**Paketatutako bertsioa:** 24.5.5~ynh1
**Demoa:** <https://app.diagrams.net/>

View file

@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main.
Application en ligne qui permet de faire des schémas et du dessin vectoriel
**Version incluse:** 24.5.2~ynh1
**Version incluse:** 24.5.5~ynh1
**Démo:** <https://app.diagrams.net/>

View file

@ -19,7 +19,7 @@ NON debe editarse manualmente.
diagrams.net (formerly draw.io) lets you create a wide range of diagrams, from simple tree and flow diagrams, to highly technical network, rack and electrical diagrams.
**Versión proporcionada:** 24.5.2~ynh1
**Versión proporcionada:** 24.5.5~ynh1
**Demo:** <https://app.diagrams.net/>

View file

@ -19,7 +19,7 @@
diagrams.net (formerly draw.io) lets you create a wide range of diagrams, from simple tree and flow diagrams, to highly technical network, rack and electrical diagrams.
**分发版本:** 24.5.2~ynh1
**分发版本:** 24.5.5~ynh1
**演示:** <https://app.diagrams.net/>

View file

@ -5,7 +5,7 @@ name = "Diagrams.net"
description.en = "Diagram software for making flowcharts, process diagrams, org charts"
description.fr = "Application qui permet de faire des schémas et du dessin vectoriel"
version = "24.5.2~ynh1"
version = "24.5.5~ynh1"
maintainers = ["Gofannon"]
@ -42,8 +42,8 @@ ram.runtime = "50M"
default = "visitors"
[resources]
[resources.sources.main]
url = "https://github.com/jgraph/drawio/archive/refs/tags/v24.5.2.tar.gz"
sha256 = "b6b4b6e3a5d2344b6df4e096a05a7dbd23747f4fe602c398b73aa2fed68e13bb"
url = "https://github.com/jgraph/drawio/archive/refs/tags/v24.5.5.tar.gz"
sha256 = "1884213783eaa1fde0086e4ce2f28a4a195bb0e6f5be3b2af5122997ee20de91"
autoupdate.strategy = "latest_github_tag"
[resources.system_user]

View file

@ -9,28 +9,18 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Upgrading source files..." --weight=24
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=24
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --full_replace=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --full_replace=1
# Add "offline" parameter in index.html
# See https://desk.draw.io/support/solutions/articles/16000042546-what-url-parameters-are-supported-
sed_pattern="s/var params = window.location.search.slice(1).split('&');/&\n\t\t\tparams.push(\"offline=1\");/g"
sed -i "$sed_pattern" "$install_dir/src/main/webapp/index.html"
fi
# Add "offline" parameter in index.html
# See https://desk.draw.io/support/solutions/articles/16000042546-what-url-parameters-are-supported-
sed_pattern="s/var params = window.location.search.slice(1).split('&');/&\n\t\t\tparams.push(\"offline=1\");/g"
sed -i "$sed_pattern" "$install_dir/src/main/webapp/index.html"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"