mirror of
https://github.com/YunoHost-Apps/fluffychat_ynh.git
synced 2024-09-03 18:36:04 +02:00
commit
fc026db4b0
18 changed files with 45 additions and 79 deletions
|
@ -16,16 +16,16 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
[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.
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 1.17.1~ynh1
|
**Shipped version:** 1.17.2~ynh1
|
||||||
|
|
||||||
**Demo:** https://fluffychat.im/web
|
**Demo:** https://fluffychat.im/web
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
![Screenshot of Fluffychat](./doc/screenshots/fluffychat.jpg)
|
![Screenshot of Fluffychat](./doc/screenshots/screenshot.png)
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
|
|
|
@ -18,14 +18,13 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
|
|
||||||
[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 de messagerie instantannée facile d'utilisation, open-source et accessible pour tout le monde.
|
[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 de messagerie instantannée facile d'utilisation, open-source et accessible pour tout le monde.
|
||||||
|
|
||||||
|
**Version incluse :** 1.17.2~ynh1
|
||||||
**Version incluse :** 1.17.1~ynh1
|
|
||||||
|
|
||||||
**Démo :** https://fluffychat.im/web
|
**Démo :** https://fluffychat.im/web
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
![Capture d’écran de Fluffychat](./doc/screenshots/fluffychat.jpg)
|
![Capture d’écran de Fluffychat](./doc/screenshots/screenshot.png)
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,8 @@ location __PATH__/ {
|
||||||
# Path to source
|
# Path to source
|
||||||
alias __INSTALL_DIR__/;
|
alias __INSTALL_DIR__/;
|
||||||
|
|
||||||
|
client_max_body_size 100M;
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
|
BIN
doc/.DS_Store
vendored
Normal file
BIN
doc/.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
The app install dir is `__INSTALL_DIR__`
|
|
|
@ -1 +0,0 @@
|
||||||
Le dossier d'install de l'app est `__INSTALL_DIR__`
|
|
|
@ -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.
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
The app url is <https://__DOMAIN____PATH__>
|
|
||||||
|
|
||||||
The app install dir is `__INSTALL_DIR__`
|
|
||||||
|
|
||||||
The app id is `__ID__`
|
|
Binary file not shown.
Before Width: | Height: | Size: 106 KiB |
BIN
doc/screenshots/screenshot.png
Normal file
BIN
doc/screenshots/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 60 KiB |
|
@ -4,12 +4,12 @@ packaging_format = 2
|
||||||
|
|
||||||
id = "fluffychat"
|
id = "fluffychat"
|
||||||
name = "Fluffychat"
|
name = "Fluffychat"
|
||||||
description.en = "A cute [matrix] client written in Flutter. "
|
description.en = "Matrix messenger client"
|
||||||
description.fr = "Un client [matrix] mignon écrit en Flutter."
|
description.fr = "Client de messagerie Matrix"
|
||||||
|
|
||||||
version = "1.17.1~ynh1"
|
version = "1.17.2~ynh1"
|
||||||
|
|
||||||
maintainers = ["OniriCorpe"]
|
maintainers = [ "OniriCorpe" ]
|
||||||
|
|
||||||
[upstream]
|
[upstream]
|
||||||
license = "AGPL-3.0-only"
|
license = "AGPL-3.0-only"
|
||||||
|
@ -20,53 +20,47 @@ code = "https://github.com/krille-chan/fluffychat"
|
||||||
fund = "https://ko-fi.com/krille"
|
fund = "https://ko-fi.com/krille"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.1.21"
|
yunohost = ">= 11.2"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
|
|
||||||
ldap = false
|
ldap = false
|
||||||
|
|
||||||
sso = false
|
sso = false
|
||||||
|
|
||||||
disk = "70M"
|
disk = "70M"
|
||||||
ram.build = "50M"
|
ram.build = "50M"
|
||||||
ram.runtime = "50M"
|
ram.runtime = "50M"
|
||||||
|
|
||||||
[install]
|
[install]
|
||||||
[install.domain]
|
|
||||||
# this is a generic question - ask strings are automatically handled by YunoHost's core
|
|
||||||
type = "domain"
|
|
||||||
|
|
||||||
[install.path]
|
[install.domain]
|
||||||
# this is a generic question - ask strings are automatically handled by YunoHost's core
|
type = "domain"
|
||||||
type = "path"
|
|
||||||
default = "/example"
|
|
||||||
|
|
||||||
[install.init_main_permission]
|
[install.path]
|
||||||
# this is a generic question - ask strings are automatically handled by YunoHost's core
|
type = "path"
|
||||||
# This won't be saved as setting and will instead be used to initialize the SSOwat permission
|
default = "/fluffychat"
|
||||||
type = "group"
|
|
||||||
default = "visitors"
|
[install.init_main_permission]
|
||||||
|
type = "group"
|
||||||
|
default = "visitors"
|
||||||
|
|
||||||
[resources]
|
[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.17.1/fluffychat-web.tar.gz"
|
|
||||||
sha256 = "6800fde0284aceeca263c86d5a3871fe44e513dbe90ab8c00fc58a8ea74ff5ad"
|
|
||||||
in_subdir = 2
|
|
||||||
|
|
||||||
autoupdate.asset = "fluffychat-web.tar.gz"
|
[resources.sources]
|
||||||
autoupdate.strategy = "latest_github_release"
|
|
||||||
|
[resources.sources.main]
|
||||||
|
|
||||||
|
url = "https://github.com/krille-chan/fluffychat/releases/download/v1.17.2/fluffychat-web.tar.gz"
|
||||||
|
sha256 = "302e24cbc0be8b6e02609da80f408245f75518e7c455acd84afea098c63e4ed5"
|
||||||
|
in_subdir = 2
|
||||||
|
|
||||||
|
autoupdate.asset = "fluffychat-web.tar.gz"
|
||||||
|
autoupdate.strategy = "latest_github_release"
|
||||||
|
|
||||||
[resources.install_dir]
|
[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"
|
owner = "www-data:rx"
|
||||||
group = "www-data:rx"
|
group = "www-data:rx"
|
||||||
|
|
||||||
[resources.permissions]
|
[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 = "/"
|
main.url = "/"
|
||||||
|
|
|
@ -15,11 +15,6 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info --message="Declaring files to be backed up..."
|
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
|
# BACKUP THE APP MAIN DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -20,7 +20,9 @@ ynh_change_url_nginx_config
|
||||||
# SPECIFIC MODIFICATIONS
|
# SPECIFIC MODIFICATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_replace_string --match_string="<base href=".*">" --replace_string="<base href=\"$path/\">" --target_file="$install_dir/index.html"
|
# remove potential trailing slash to avoid double slashes
|
||||||
|
path_without_trailing_slash=${path%/}
|
||||||
|
ynh_replace_string --match_string="<base href=".*">" --replace_string="<base href=\"$path_without_trailing_slash/\">" --target_file="$install_dir/index.html"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -19,11 +19,10 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
# Download, check integrity, uncompress and patch the source from manifest.toml
|
# Download, check integrity, uncompress and patch the source from manifest.toml
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
ynh_replace_string --match_string="<base href=".*">" --replace_string="<base href=\"$path/\">" --target_file="$install_dir/index.html"
|
# remove potential trailing slash to avoid double slashes
|
||||||
|
path_without_trailing_slash=${path%/}
|
||||||
|
ynh_replace_string --match_string="<base href=".*">" --replace_string="<base href=\"$path_without_trailing_slash/\">" --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"
|
chown -R "www-data:www-data" "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -12,7 +12,6 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE SYSTEM CONFIGURATIONS
|
# REMOVE SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
ynh_remove_nginx_config
|
ynh_remove_nginx_config
|
||||||
|
|
|
@ -17,9 +17,6 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$install_dir"
|
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"
|
chown -R "www-data:www-data" "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -9,21 +9,8 @@
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
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)
|
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...)
|
# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...)
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -37,12 +24,11 @@ then
|
||||||
# Download, check integrity, uncompress and patch the source from manifest.toml
|
# Download, check integrity, uncompress and patch the source from manifest.toml
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
ynh_replace_string --match_string="<base href=".*">" --replace_string="<base href=\"$path/\">" --target_file="$install_dir/index.html"
|
# remove potential trailing slash to avoid double slashes
|
||||||
|
path_without_trailing_slash=${path%/}
|
||||||
|
ynh_replace_string --match_string="<base href=".*">" --replace_string="<base href=\"$path_without_trailing_slash/\">" --target_file="$install_dir/index.html"
|
||||||
fi
|
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"
|
chown -R "www-data:www-data" "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue