diff --git a/README.md b/README.md index 8dba83b..a58f66d 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ It shall NOT be edited by hand. # Invidious for YunoHost [![Integration level](https://dash.yunohost.org/integration/invidious.svg)](https://dash.yunohost.org/appci/app/invidious) ![Working status](https://ci-apps.yunohost.org/ci/badges/invidious.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/invidious.maintain.svg) + [![Install Invidious with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=invidious) *[Lire ce readme en français.](./README_fr.md)* @@ -23,7 +24,7 @@ In addition to constituting an advantage in terms of confidentiality (the data d - Ability to subscribe to channels without creating a Google account -**Shipped version:** 23.01.29~ynh1 +**Shipped version:** 23.02.14~ynh1 **Demo:** https://invidious.site/ diff --git a/README_fr.md b/README_fr.md index 662578c..2565cfa 100644 --- a/README_fr.md +++ b/README_fr.md @@ -6,6 +6,7 @@ It shall NOT be edited by hand. # Invidious pour YunoHost [![Niveau d’intégration](https://dash.yunohost.org/integration/invidious.svg)](https://dash.yunohost.org/appci/app/invidious) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/invidious.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/invidious.maintain.svg) + [![Installer Invidious avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=invidious) *[Read this readme in english.](./README.md)* @@ -22,7 +23,7 @@ En plus de constituer un avantage sur le plan de la confidentialité (les donné - Possibilité d'afficher les commentaires Reddit plutôt que les commentaires YouTube, - Possibilité de s'abonner aux chaines sans créer de compte Google -**Version incluse :** 23.01.29~ynh1 +**Version incluse :** 23.02.14~ynh1 **Démo :** https://invidious.site/ diff --git a/manifest.json b/manifest.json index e6fce2d..d008375 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Alternative front-end to YouTube", "fr": "Front-end alternatif à YouTube" }, - "version": "23.01.29~ynh1", + "version": "23.02.14~ynh1", "url": "https://invidio.us/", "upstream": { "license": "GPL-3.0-only", diff --git a/scripts/_common.sh b/scripts/_common.sh index 6fce13b..ffdbf1d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -version_commit=3b8e6c6040fe341fe4b9fc16cdbd3aea697dfad3 +version_commit=7993784701686c057b85c57704537135e6326de9 # dependencies used by the app pkg_dependencies="apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin imagemagick libsqlite3-dev zlib1g-dev libevent-dev pkg-config libpcre3-dev" diff --git a/scripts/install b/scripts/install index c45ebb1..6e42f4c 100644 --- a/scripts/install +++ b/scripts/install @@ -107,11 +107,16 @@ ynh_script_progression --message="Setting up source files..." --weight=4 ynh_app_setting_set --app=$app --key=final_path --value=$final_path +mkdir -p "$final_path" +chown -R $app:www-data "$final_path" + +git config --system --add safe.directory $final_path + # Download, check integrity, uncompress and patch the source from GitHub -git clone https://github.com/iv-org/invidious "$final_path" --quiet +ynh_exec_as $app git clone https://github.com/iv-org/invidious "$final_path" --quiet pushd "$final_path" - git reset --hard --quiet $version_commit + ynh_exec_as $app git reset --hard --quiet $version_commit popd for i in $final_path/config/sql/*.sql ; do diff --git a/scripts/upgrade b/scripts/upgrade index 83f78e2..b3c4107 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -113,10 +113,13 @@ then ynh_script_progression --message="Upgrading source files..." --weight=5 pushd $final_path - git fetch - #git checkout master - git reset --hard --quiet $version_commit - git pull + chown -R $app:www-data "$final_path" + git config --system --add safe.directory $final_path + + ynh_exec_as $app git fetch + #git checkout master + ynh_exec_as $app git reset --hard --quiet $version_commit + ynh_exec_as $app git pull ynh_exec_warn_less shards install --production ynh_exec_warn_less crystal build $final_path/src/invidious.cr --release popd