mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
parent
e32e33ed1d
commit
d0b65b6955
8 changed files with 40 additions and 52 deletions
24
README.md
24
README.md
|
@ -1,7 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
|
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
|
||||||
It shall NOT be edited by hand.
|
It shall NOT be edited by hand.
|
||||||
|
@ -9,30 +5,25 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# Invidious for YunoHost
|
# Invidious for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/invidious)  
|
[](https://dash.yunohost.org/appci/app/invidious)  
|
||||||
[](https://install-app.yunohost.org/?app=invidious)
|
[](https://install-app.yunohost.org/?app=invidious)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
|
||||||
> *This package allows you to install invidious quickly and simply on a YunoHost server.
|
> *This package allows you to install Invidious quickly and simply on a YunoHost server.
|
||||||
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
|
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Alternative front-end to YouTube
|
Alternative front-end to YouTube
|
||||||
|
|
||||||
**Shipped version:** 0.20.1~ynh9
|
**Shipped version:** 0.20.1~ynh10
|
||||||
|
|
||||||
**Demo:** https://invidious.site/
|
**Demo:** https://invidious.site/
|
||||||
|
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|

|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Disclaimers / important information
|
## Disclaimers / important information
|
||||||
|
|
||||||
|
@ -40,14 +31,11 @@ Alternative front-end to YouTube
|
||||||
|
|
||||||
You can configure Invidious by modifying the configuration file `/var/www/invidious/config/config.yml` with the help of this [documentation](https://github.com/iv-org/documentation/blob/master/Configuration.md).
|
You can configure Invidious by modifying the configuration file `/var/www/invidious/config/config.yml` with the help of this [documentation](https://github.com/iv-org/documentation/blob/master/Configuration.md).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
|
|
||||||
* Official user documentation: https://github.com/iv-org/documentation
|
* Official user documentation: https://github.com/iv-org/documentation
|
||||||
* Official admin documentation: https://yunohost.org/packaging_apps
|
* Official admin documentation: https://yunohost.org/packaging_apps
|
||||||
* Upstream app code repository: https://github.com/iv-org/invidious
|
* Upstream app code repository: https://github.com/iv-org/invidious
|
||||||
* YunoHost documentation for this app: https://yunohost.org/app_invidious
|
* YunoHost documentation for this app: https://yunohost.org/app_invidious
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/invidious_ynh/issues
|
* Report a bug: https://github.com/YunoHost-Apps/invidious_ynh/issues
|
||||||
|
|
||||||
|
|
36
README_fr.md
36
README_fr.md
|
@ -1,30 +1,25 @@
|
||||||
# Invidious pour YunoHost
|
# Invidious pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/invidious)  
|
[](https://dash.yunohost.org/appci/app/invidious)  
|
||||||
[](https://install-app.yunohost.org/?app=invidious)
|
[](https://install-app.yunohost.org/?app=invidious)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[Read this readme in english.](./README.md)*
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
|
||||||
> *This package allows you to install invidious quickly and simply on a YunoHost server.
|
> *Ce package vous permet d'installer Invidious rapidement et simplement sur un serveur YunoHost.
|
||||||
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
|
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
||||||
|
|
||||||
## Vue d'ensemble
|
## Vue d'ensemble
|
||||||
|
|
||||||
Front-end alternatif à YouTube
|
Front-end alternatif à YouTube
|
||||||
|
|
||||||
**Version incluse:** 0.20.1~ynh9
|
**Version incluse :** 0.20.1~ynh10
|
||||||
|
|
||||||
**Démo:** https://invidious.site/
|
|
||||||
|
|
||||||
|
**Démo :** https://invidious.site/
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d'écran
|
||||||
|
|
||||||
|

|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Avertissements / informations importantes
|
## Avertissements / informations importantes
|
||||||
|
|
||||||
|
@ -32,16 +27,13 @@ Front-end alternatif à YouTube
|
||||||
|
|
||||||
Vous pouvez configurer Invidious en modifiant le fichier de configuration `/var/www/invidious/config/config.yaml` avec l'aide de cette [documentation](https://github.com/iv-org/documentation/blob/master/Configuration.md).
|
Vous pouvez configurer Invidious en modifiant le fichier de configuration `/var/www/invidious/config/config.yaml` avec l'aide de cette [documentation](https://github.com/iv-org/documentation/blob/master/Configuration.md).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
|
* Documentation officielle utilisateur : https://github.com/iv-org/documentation
|
||||||
* Documentation officielle utilisateur: https://github.com/iv-org/documentation
|
* Documentation officielle de l'admin : https://yunohost.org/packaging_apps
|
||||||
* Documentation officielle de l'admin: https://yunohost.org/packaging_apps
|
* Dépôt de code officiel de l'app : https://github.com/iv-org/invidious
|
||||||
* Dépôt de code officiel de l'app: https://github.com/iv-org/invidious
|
* Documentation YunoHost pour cette app : https://yunohost.org/app_invidious
|
||||||
* Documentation YunoHost pour cette app: https://yunohost.org/app_invidious
|
* Signaler un bug : https://github.com/YunoHost-Apps/invidious_ynh/issues
|
||||||
* Signaler un bug: https://github.com/YunoHost-Apps/invidious_ynh/issues
|
|
||||||
|
|
||||||
## Informations pour les développeurs
|
## Informations pour les développeurs
|
||||||
|
|
||||||
|
@ -50,8 +42,8 @@ Merci de faire vos pull request sur la [branche testing](https://github.com/Yuno
|
||||||
Pour essayer la branche testing, procédez comme suit.
|
Pour essayer la branche testing, procédez comme suit.
|
||||||
```
|
```
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/invidious_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/invidious_ynh/tree/testing --debug
|
||||||
or
|
ou
|
||||||
sudo yunohost app upgrade invidious -u https://github.com/YunoHost-Apps/invidious_ynh/tree/testing --debug
|
sudo yunohost app upgrade invidious -u https://github.com/YunoHost-Apps/invidious_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**Plus d'infos sur le packaging d'applications:** https://yunohost.org/packaging_apps
|
**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps
|
|
@ -12,9 +12,15 @@
|
||||||
setup_private=1
|
setup_private=1
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
|
upgrade=1 from_commit=e32e33ed1d76bea6d493ec3ca9a24290aeeccc8e
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=0
|
multi_instance=0
|
||||||
change_url=0
|
change_url=0
|
||||||
;;; Options
|
;;; Options
|
||||||
Email=
|
Email=
|
||||||
Notification=none
|
Notification=none
|
||||||
|
;;; Upgrade options
|
||||||
|
; commit=e32e33ed1d76bea6d493ec3ca9a24290aeeccc8e
|
||||||
|
name=Testing (#23)
|
||||||
|
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
SOURCE_URL=https://github.com/crystal-lang/crystal/releases/download/0.36.1/crystal_0.36.1-1_amd64.deb
|
SOURCE_URL=https://github.com/crystal-lang/crystal/releases/download/1.0.0/crystal_1.0.0-1_amd64.deb
|
||||||
SOURCE_SUM=bac79d5513911fc6ad1cf9d05571132e36a139e7cf0808acee518c57ab1aa563
|
SOURCE_SUM=bc4c15bdfb32ae08daef40728fc8a1da260a4defd225f7ba309404d9e77dcd8d
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=deb
|
SOURCE_FORMAT=deb
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
SOURCE_FILENAME=crystal_0.36.1-1_amd64.deb
|
SOURCE_FILENAME=crystal_1.0.0-1_amd64.deb
|
||||||
SOURCE_EXTRACT=false
|
SOURCE_EXTRACT=false
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Alternative front-end to YouTube",
|
"en": "Alternative front-end to YouTube",
|
||||||
"fr": "Front-end alternatif à YouTube"
|
"fr": "Front-end alternatif à YouTube"
|
||||||
},
|
},
|
||||||
"version": "0.20.1~ynh9",
|
"version": "0.20.1~ynh10",
|
||||||
"url": "https://invidio.us/",
|
"url": "https://invidio.us/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
|
|
|
@ -70,7 +70,7 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
tempdir="$(mktemp -d)"
|
tempdir="$(mktemp -d)"
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id=crystal
|
ynh_setup_source --dest_dir=$tempdir --source_id=crystal
|
||||||
ynh_exec_warn_less dpkg -i $tempdir/crystal_0.36.1-1_amd64.deb
|
ynh_exec_warn_less dpkg -i $tempdir/crystal_1.0.0-1_amd64.deb
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
|
|
|
@ -83,7 +83,7 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
tempdir="$(mktemp -d)"
|
tempdir="$(mktemp -d)"
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id=crystal
|
ynh_setup_source --dest_dir=$tempdir --source_id=crystal
|
||||||
ynh_exec_warn_less dpkg -i $tempdir/crystal_0.36.1-1_amd64.deb
|
ynh_exec_warn_less dpkg -i $tempdir/crystal_1.0.0-1_amd64.deb
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE POSTGRESQL DATABASE
|
# RESTORE THE POSTGRESQL DATABASE
|
||||||
|
|
|
@ -82,9 +82,10 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=8
|
||||||
|
|
||||||
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
|
||||||
tempdir="$(mktemp -d)"
|
tempdir="$(mktemp -d)"
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id=crystal
|
ynh_setup_source --dest_dir=$tempdir --source_id=crystal
|
||||||
ynh_exec_warn_less dpkg -i $tempdir/crystal_0.36.1-1_amd64.deb
|
ynh_exec_warn_less dpkg -i $tempdir/crystal_1.0.0-1_amd64.deb
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
@ -100,13 +101,14 @@ then
|
||||||
cp -a "$final_path/config/config.yml" "$tmpdir/config.yml"
|
cp -a "$final_path/config/config.yml" "$tmpdir/config.yml"
|
||||||
|
|
||||||
# Remove the app directory securely
|
# Remove the app directory securely
|
||||||
ynh_secure_remove --file=$final_path
|
#ynh_secure_remove --file=$final_path
|
||||||
|
|
||||||
git clone https://github.com/iv-org/invidious "$final_path" --quiet
|
#git clone https://github.com/iv-org/invidious "$final_path" --quiet
|
||||||
pushd "$final_path" || ynh_die
|
pushd $final_path
|
||||||
|
git pull
|
||||||
shards update && shards install
|
shards update && shards install
|
||||||
crystal build $final_path/src/invidious.cr --release
|
crystal build $final_path/src/invidious.cr --release
|
||||||
popd || ynh_die
|
popd
|
||||||
|
|
||||||
# Copy the admin saved settings from tmp directory to final path
|
# Copy the admin saved settings from tmp directory to final path
|
||||||
cp -a "$tmpdir/config.yml" "$final_path/config/config.yml"
|
cp -a "$tmpdir/config.yml" "$final_path/config/config.yml"
|
||||||
|
|
Loading…
Add table
Reference in a new issue