diff --git a/doc/ADMIN.md b/doc/ADMIN.md deleted file mode 100644 index f35b3f6..0000000 --- a/doc/ADMIN.md +++ /dev/null @@ -1 +0,0 @@ -The app install dir is `__INSTALL_DIR__` diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md deleted file mode 100644 index 838270a..0000000 --- a/doc/ADMIN_fr.md +++ /dev/null @@ -1 +0,0 @@ -Le dossier d'install de l'app est `__INSTALL_DIR__` diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md index f042dcc..e894e3f 100644 --- a/doc/DESCRIPTION.md +++ b/doc/DESCRIPTION.md @@ -1 +1 @@ -[FluffyChat](https://fluffychat.im) is an open source, nonprofit and cute [[matrix](https://matrix.org)] client written in [Flutter](https://flutter.dev). The goal of the app is to create an easy to use instant messenger which is open source and accessible for everyone. +FluffyChat is an open source, nonprofit and cute [[matrix](https://matrix.org)] client written in [Flutter](https://flutter.dev). The goal of the app is to create an easy to use instant messenger which is open source and accessible for everyone. diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md index adb30dd..97590c9 100644 --- a/doc/DESCRIPTION_fr.md +++ b/doc/DESCRIPTION_fr.md @@ -1 +1 @@ -[FluffyChat](https://fluffychat.im) est un client [[matrix](https://matrix.org)] open-source, à but non lucratif et mignon écrit en [Flutter](https://flutter.dev). Le but de cette app est de créer un client d emessagerie instantannée facile d'utilisation, open-source et accessible pour tout le monde. +FluffyChat est un client [[matrix](https://matrix.org)] open-source, à but non lucratif et mignon écrit en [Flutter](https://flutter.dev). Le but de cette app est de créer un client d emessagerie instantannée facile d'utilisation, open-source et accessible pour tout le monde. diff --git a/doc/POST_INSTALL.md b/doc/POST_INSTALL.md deleted file mode 100644 index 1452cfc..0000000 --- a/doc/POST_INSTALL.md +++ /dev/null @@ -1,5 +0,0 @@ -The app url is - -The app install dir is `__INSTALL_DIR__` - -The app id is `__ID__` diff --git a/manifest.toml b/manifest.toml index c86319a..930e5f4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -4,8 +4,8 @@ packaging_format = 2 id = "fluffychat" name = "Fluffychat" -description.en = "A cute [matrix] client written in Flutter. " -description.fr = "Un client [matrix] mignon écrit en Flutter." +description.en = "Matrix messenger client" +description.fr = "Client de messagerie Matrix" version = "1.16.0~ynh1" @@ -20,53 +20,46 @@ code = "https://github.com/krille-chan/fluffychat" fund = "https://ko-fi.com/krille" [integration] -yunohost = ">= 11.1.21" +yunohost = ">= 11.2" architectures = "all" multi_instance = true + ldap = false + sso = false + disk = "70M" ram.build = "50M" ram.runtime = "50M" [install] -[install.domain] -# this is a generic question - ask strings are automatically handled by YunoHost's core -type = "domain" -[install.path] -# this is a generic question - ask strings are automatically handled by YunoHost's core -type = "path" -default = "/example" + [install.domain] + type = "domain" -[install.init_main_permission] -# this is a generic question - ask strings are automatically handled by YunoHost's core -# This won't be saved as setting and will instead be used to initialize the SSOwat permission -type = "group" -default = "visitors" + [install.path] + type = "path" + default = "/fluffychat" + + [install.init_main_permission] + type = "group" + default = "visitors" [resources] -# See the packaging documentation for the full set -# of explanation regarding the behavior and properties for each of those -[resources.sources] -[resources.sources.main] -# This will pre-fetch the asset which can then be deployed during the install/upgrade scripts with : -# ynh_setup_source --dest_dir="$install_dir" -# You can also define other assets than "main" and add --source_id="foobar" in the previous command -url = "https://github.com/krille-chan/fluffychat/releases/download/v1.16.0/fluffychat-web.tar.gz" -sha256 = "b7852559895d3a4dd2107f5b8f6814b5d8571a720ea2ec4e1174392fd7267bd1" -in_subdir = 2 -autoupdate.asset = "fluffychat-web.tar.gz" -autoupdate.strategy = "latest_github_release" + [resources.sources] -[resources.install_dir] -# This will create/remove the install dir as /var/www/$app -# and store the corresponding setting $install_dir -owner = "www-data:rx" -group = "www-data:rx" + [resources.sources.main] + url = "https://github.com/krille-chan/fluffychat/releases/download/v1.16.0/fluffychat-web.tar.gz" + sha256 = "b7852559895d3a4dd2107f5b8f6814b5d8571a720ea2ec4e1174392fd7267bd1" + in_subdir = 2 -[resources.permissions] -# This will configure SSOwat permission for $domain/$path/ -# The initial allowed group of user is configured via the init_main_permission question (public=visitors, private=all_users) -main.url = "/" + autoupdate.asset = "fluffychat-web.tar.gz" + autoupdate.strategy = "latest_github_release" + + [resources.install_dir] + owner = "www-data:rx" + group = "www-data:rx" + + [resources.permissions] + main.url = "/" diff --git a/scripts/backup b/scripts/backup index 230e9ab..52eea5b 100755 --- a/scripts/backup +++ b/scripts/backup @@ -15,11 +15,6 @@ source /usr/share/yunohost/helpers #================================================= ynh_print_info --message="Declaring files to be backed up..." -### N.B. : the following 'ynh_backup' calls are only a *declaration* of what needs -### to be backuped and not an actual copy of any file. The actual backup that -### creates and fills the archive with the files happens in the core after this -### script is called. Hence ynh_backups calls take basically 0 seconds to run. - #================================================= # BACKUP THE APP MAIN DIR #================================================= diff --git a/scripts/install b/scripts/install index 9dd4c50..77420f6 100755 --- a/scripts/install +++ b/scripts/install @@ -21,9 +21,6 @@ ynh_setup_source --dest_dir="$install_dir" ynh_replace_string --match_string="" --replace_string="" --target_file="$install_dir/index.html" -# $install_dir will automatically be initialized with some decent -# permission by default ... however, you may need to recursively reapply -# ownership to all files such as after the ynh_setup_source step chown -R "www-data:www-data" "$install_dir" #================================================= diff --git a/scripts/remove b/scripts/remove index 85c4e89..ad629d0 100755 --- a/scripts/remove +++ b/scripts/remove @@ -12,7 +12,6 @@ source /usr/share/yunohost/helpers #================================================= # REMOVE SYSTEM CONFIGURATIONS #================================================= - ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 ynh_remove_nginx_config diff --git a/scripts/restore b/scripts/restore index 4aa45f8..cd7a2ea 100755 --- a/scripts/restore +++ b/scripts/restore @@ -17,9 +17,6 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" -# $install_dir will automatically be initialized with some decent -# permissions by default ... however, you may need to recursively reapply -# ownership to all files such as after the ynh_setup_source step chown -R "www-data:www-data" "$install_dir" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 3870c7d..4b674c7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,21 +9,8 @@ source _common.sh source /usr/share/yunohost/helpers -### This helper will compare the version of the currently installed app and the version of the upstream package. -### $upgrade_type can have 2 different values -### - UPGRADE_APP if the upstream app version has changed -### - UPGRADE_PACKAGE if only the YunoHost package has changed -### ynh_check_app_version_changed will stop the upgrade if the app is up to date. -### UPGRADE_APP should be used to upgrade the core app only if there's an upgrade to do. upgrade_type=$(ynh_check_app_version_changed) -#================================================= -# STANDARD UPGRADE STEPS -#================================================= -# ENSURE DOWNWARD COMPATIBILITY -#================================================= -#ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 - #================================================= # "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...) #================================================= @@ -40,9 +27,6 @@ then ynh_replace_string --match_string="" --replace_string="" --target_file="$install_dir/index.html" fi -# $install_dir will automatically be initialized with some decent -# permissions by default ... however, you may need to recursively reapply -# ownership to all files such as after the ynh_setup_source step chown -R "www-data:www-data" "$install_dir" #=================================================