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

Merge pull request #32 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2024-01-02 08:32:02 +01:00 committed by GitHub
commit c9d5ab10fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 16 deletions

View file

@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
EtherCalc is a collaborative spreadsheet that can be edited in real time. Each spreadsheet has its own URL. It has the basic functionalities: formatting, mathematical functions, graphics, adding comments, version history, export in HTML or in CSV. EtherCalc is a decentralized software: different instances allow the use of the service, they are made available by several organizations (for example the eponymous site or the FramaCalc service). This makes it possible to avoid concentrating all the data in the hands of the same actor. Instances can be personalized (limitation of the duration of hosting of the spreadsheet, modification of the design, etc.).
**Shipped version:** 20201228~ynh9
**Shipped version:** 20240101~ynh1
**Demo:** https://ethercalc.net/

View file

@ -19,7 +19,7 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
EtherCalc est un tableur collaboratif éditable en temps réel. Chaque tableur possède sa propre URL. Il dispose des fonctionnalités de base : mise en forme, fonctions mathématiques, graphiques, ajout de commentaires, historique des versions, export en HTML ou en CSV. EtherCalc est un logiciel décentralisé : différentes instances permettent d'utiliser le service, elles sont mises à disposition par plusieurs organisations (par exemple le site éponyme ou le service FramaCalc). Cela permet d'éviter de concentrer toutes les données entre les mains d'un même acteur. Les instances peuvent être personnalisées (limitation de la durée d'hébergement du tableur, modification du design, etc.).
**Version incluse :** 20201228~ynh9
**Version incluse :** 20240101~ynh1
**Démo :** https://ethercalc.net/

View file

@ -5,7 +5,7 @@ name = "EtherCalc"
description.en = "Real-time collaborative spreadsheet editor"
description.fr = "Feuille de calcul collaborative en ligne"
version = "20201228~ynh9"
version = "20240101~ynh1"
maintainers = ["ljf"]
@ -16,19 +16,21 @@ demo = "https://ethercalc.net/"
code = "https://github.com/audreyt/ethercalc"
[integration]
yunohost = ">= 11.1.19"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = true
ldap = false
sso = false
disk = "50M"
ram.build = "50M"
ram.build = "500M"
ram.runtime = "50M"
[install]
[install.domain]
type = "domain"
full_domain = true
[install.init_main_permission]
type = "group"

View file

@ -14,7 +14,6 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Installing dependencies..." --weight=20
# Install Nodejs
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
@ -22,7 +21,6 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=2
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir=$install_dir
chmod -R o-rwx "$install_dir"
@ -34,7 +32,6 @@ chmod +x $install_dir/bin/runSafe.sh
#=================================================
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
env_path="$PATH"
@ -49,6 +46,7 @@ ynh_script_progression --message="Building EtherCalc... (this will take some tim
pushd "$install_dir"
ynh_use_nodejs
ynh_secure_remove --file="$install_dir/package-lock.json"
ynh_exec_warn_less npm i -g ethercalc
ynh_exec_warn_less npm i zappajs
popd

View file

@ -16,20 +16,16 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Remove the service from the list of services known by Yunohost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status $app >/dev/null
then
ynh_script_progression --message="Removing $app service integration..." --weight=2
yunohost service remove $app
fi
# Remove the dedicated systemd config
ynh_remove_systemd_config
# Remove metapackage and its dependencies
ynh_remove_nodejs
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#=================================================

View file

@ -27,7 +27,6 @@ chmod +x $install_dir/bin/runSafe.sh
#=================================================
ynh_script_progression --message="Reinstalling dependencies..." --weight=1
# Install Nodejs
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================

View file

@ -47,10 +47,8 @@ chmod +x $install_dir/bin/runSafe.sh
#=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1
# Install Nodejs
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
# Create a dedicated nginx config
ynh_add_nginx_config
env_path="$PATH"
@ -66,6 +64,7 @@ ynh_script_progression --message="Building EtherCalc... (this will take some tim
pushd "$install_dir"
ynh_use_nodejs
ynh_secure_remove --file="$install_dir/package-lock.json"
ynh_exec_warn_less npm install -g ethercalc
ynh_exec_warn_less npm i zappajs
popd