diff --git a/README.md b/README.md index 5552c84..780a8dc 100644 --- a/README.md +++ b/README.md @@ -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:** diff --git a/README_es.md b/README_es.md index 9308bc4..53bffad 100644 --- a/README_es.md +++ b/README_es.md @@ -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:** diff --git a/README_eu.md b/README_eu.md index b8bcc04..b0ae0ff 100644 --- a/README_eu.md +++ b/README_eu.md @@ -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:** diff --git a/README_fr.md b/README_fr.md index 065d60f..8e1f478 100644 --- a/README_fr.md +++ b/README_fr.md @@ -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 :** diff --git a/README_gl.md b/README_gl.md index 89d7b82..b25b14d 100644 --- a/README_gl.md +++ b/README_gl.md @@ -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:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 582b6b3..3600746 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -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 **演示:** diff --git a/manifest.toml b/manifest.toml index d8caccb..15d92d9 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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] diff --git a/scripts/upgrade b/scripts/upgrade index daf71a6..cb51fce 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"