diff --git a/README.md b/README.md index 6eb6466..67dd8df 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Flarum is a simple discussion platform for your website. It's fast and easy to use, with all the features you need to run a successful community. -**Shipped version:** 1.8.1~ynh1 +**Shipped version:** 1.8.2~ynh1 **Demo:** https://discuss.flarum.org/d/21101-demos-come-to-flarum diff --git a/README_fr.md b/README_fr.md index 2d4d9a0..5f4e6c3 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Flarum est une plate-forme de discussion simple pour votre site Web. C'est rapide et facile à utiliser, avec toutes les fonctionnalités dont vous avez besoin pour gérer une communauté. -**Version incluse :** 1.8.1~ynh1 +**Version incluse :** 1.8.2~ynh1 **Démo :** https://discuss.flarum.org/d/21101-demos-come-to-flarum diff --git a/manifest.toml b/manifest.toml index 3f812d2..d5da364 100644 --- a/manifest.toml +++ b/manifest.toml @@ -6,7 +6,7 @@ description.en = "Next-generation forum made simple" description.fr = "Forum de nouvelle génération, simplement" description.de = "Forum der nächsten Generation leicht gemacht" -version = "1.8.1~ynh1" +version = "1.8.2~ynh1" maintainers = ["tituspijean"] @@ -70,9 +70,19 @@ ram.runtime = "50M" [resources] + # The main source is only used to auto-update the package [resources.sources.main] + prefetch = false + url = "https://github.com/flarum/framework/archive/refs/tags/v1.8.2.tar.gz" + sha256 = "b1db07a9f0bdbd1b04b22e3c460de7e830f41d0c6f92264338309dbb7e148b1d" + autoupdate.upstream = "https://github.com/flarum/framework" + autoupdate.strategy = "latest_github_tag" + + # The flarum source is the one actually being installed + [resources.sources.flarum] url = "https://github.com/flarum/flarum/archive/v1.8.0.zip" sha256 = "c6179876c27689522eb3e46d369ca053517602f528dcd36ba8a338ec768845cd" + autoupdate.upstream = "https://github.com/flarum/flarum" autoupdate.strategy = "latest_github_tag" [resources.system_user] diff --git a/scripts/install b/scripts/install index b0f5552..364c93e 100644 --- a/scripts/install +++ b/scripts/install @@ -36,7 +36,7 @@ ynh_app_setting_set --app=$app --key=ldap_version --value="$ldap_version" ynh_script_progression --message="Setting up source files..." --weight=3 # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir="$install_dir" +ynh_setup_source --dest_dir="$install_dir" --source_id="flarum" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" diff --git a/scripts/upgrade b/scripts/upgrade index 8b484e0..9b0900f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -61,7 +61,7 @@ then ynh_secure_remove --file="$install_dir" # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" + ynh_setup_source --dest_dir="$install_dir" --source_id="flarum" # Copy config.php back into Flarum cp -f $tmpdir/config.php $install_dir