mirror of
https://github.com/YunoHost-Apps/simple-torrent_ynh.git
synced 2024-09-03 20:26:18 +02:00
Testing (#73)
* Update upgrade * Update manifest.json * Auto-update README * Update restore * Update remove * Create DESCRIPTION.md * Auto-update README * Update DESCRIPTION.md * Auto-update README * Create updater.sh * Update arm64.src * Update manifest.json * Auto-update README * Update updater.sh * Update updater.sh * Update manifest.json * Upgrade to version 1.3.7 (#62) * Upgrade to v1.3.7 * Auto-update README Co-authored-by: yunohost-bot <yunohost-bot@users.noreply.github.com> Co-authored-by: Yunohost-Bot <> * Update manifest.json * Update check_process * keep config (#67) * Update upgrade * Update manifest.json * Auto-update README * Auto-update README * 4.3 * Update manifest.json * Auto-update README * Update manifest.json * Auto-update README * Update upgrade * fix linter (#72) Co-authored-by: Yunohost-Bot <> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: yunohost-bot <yunohost-bot@users.noreply.github.com> Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
parent
a646f376a4
commit
e66eb25fec
7 changed files with 46 additions and 66 deletions
24
README.md
24
README.md
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# Simple Torrent for YunoHost
|
# Simple Torrent for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/simple-torrent)  
|
[](https://dash.yunohost.org/appci/app/simple-torrent)  
|
||||||
[](https://install-app.yunohost.org/?app=simple-torrent)
|
[](https://install-app.yunohost.org/?app=simple-torrent)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
@ -30,14 +30,13 @@ SimpleTorrent is a a self-hosted remote torrent client, written in Go (golang).
|
||||||
- Magnet RSS subscribing supported
|
- Magnet RSS subscribing supported
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 1.3.9~ynh3
|
**Shipped version:** 1.3.9~ynh4 *(:warning: This is the `testing` branch. The [`master` branch](https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/master) used in the catalog is currently on version 1.3.9\~ynh3.)*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## Disclaimers / important information
|
## Disclaimers / important information
|
||||||
|
|
||||||
|
@ -53,21 +52,22 @@ You can also configure Simple Torrent by editing this file `/var/www/simple-torr
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: https://github.com/boypt/simple-torrent
|
* Official app website: <https://github.com/boypt/simple-torrent>
|
||||||
* Official admin documentation: https://github.com/boypt/simple-torrent/wiki
|
* Official admin documentation: <https://github.com/boypt/simple-torrent/wiki>
|
||||||
* Upstream app code repository: https://github.com/boypt/simple-torrent
|
* Upstream app code repository: <https://github.com/boypt/simple-torrent>
|
||||||
* YunoHost documentation for this app: https://yunohost.org/app_simple-torrent
|
* YunoHost documentation for this app: <https://yunohost.org/app_simple-torrent>
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/simple-torrent_ynh/issues
|
* Report a bug: <https://github.com/YunoHost-Apps/simple-torrent_ynh/issues>
|
||||||
|
|
||||||
## Developer info
|
## Developer info
|
||||||
|
|
||||||
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing).
|
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing).
|
||||||
|
|
||||||
To try the testing branch, please proceed like that.
|
To try the testing branch, please proceed like that.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing --debug
|
||||||
or
|
or
|
||||||
sudo yunohost app upgrade simple-torrent -u https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing --debug
|
sudo yunohost app upgrade simple-torrent -u https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**More info regarding app packaging:** https://yunohost.org/packaging_apps
|
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>
|
||||||
|
|
30
README_fr.md
30
README_fr.md
|
@ -1,10 +1,14 @@
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
# Simple Torrent pour YunoHost
|
# Simple Torrent pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/simple-torrent)  
|
[](https://dash.yunohost.org/appci/app/simple-torrent)  
|
||||||
[](https://install-app.yunohost.org/?app=simple-torrent)
|
[](https://install-app.yunohost.org/?app=simple-torrent)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[Read this readme in english.](./README.md)*
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
|
||||||
|
|
||||||
> *Ce package vous permet d'installer Simple Torrent rapidement et simplement sur un serveur YunoHost.
|
> *Ce package vous permet d'installer Simple Torrent rapidement et simplement sur un serveur YunoHost.
|
||||||
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
||||||
|
@ -26,14 +30,13 @@ SimpleTorrent is a a self-hosted remote torrent client, written in Go (golang).
|
||||||
- Magnet RSS subscribing supported
|
- Magnet RSS subscribing supported
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 1.3.9~ynh3
|
**Version incluse :** 1.3.9~ynh4 *(:warning: Il s'agit de la branche `testing`. La [branche `master`](https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/master) utilisée dans le catalogue est actuellement en 1.3.9\~ynh3.)*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d'écran
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## Avertissements / informations importantes
|
## Avertissements / informations importantes
|
||||||
|
|
||||||
|
@ -49,21 +52,22 @@ Vous pouvez configurer Simple Torrent en modifiant le fichier `/var/www/simple-t
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l'app : https://github.com/boypt/simple-torrent
|
* Site officiel de l'app : <https://github.com/boypt/simple-torrent>
|
||||||
* Documentation officielle de l'admin : https://github.com/boypt/simple-torrent/wiki
|
* Documentation officielle de l'admin : <https://github.com/boypt/simple-torrent/wiki>
|
||||||
* Dépôt de code officiel de l'app : https://github.com/boypt/simple-torrent
|
* Dépôt de code officiel de l'app : <https://github.com/boypt/simple-torrent>
|
||||||
* Documentation YunoHost pour cette app : https://yunohost.org/app_simple-torrent
|
* Documentation YunoHost pour cette app : <https://yunohost.org/app_simple-torrent>
|
||||||
* Signaler un bug : https://github.com/YunoHost-Apps/simple-torrent_ynh/issues
|
* Signaler un bug : <https://github.com/YunoHost-Apps/simple-torrent_ynh/issues>
|
||||||
|
|
||||||
## Informations pour les développeurs
|
## Informations pour les développeurs
|
||||||
|
|
||||||
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing).
|
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing).
|
||||||
|
|
||||||
Pour essayer la branche testing, procédez comme suit.
|
Pour essayer la branche testing, procédez comme suit.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing --debug
|
||||||
ou
|
ou
|
||||||
sudo yunohost app upgrade simple-torrent -u https://github.com/YunoHost-Apps/simple-torrent_ynh/tree/testing --debug
|
sudo yunohost app upgrade simple-torrent -u https://github.com/YunoHost-Apps/simple-torrent_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>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Self-hosted remote torrent client",
|
"en": "Self-hosted remote torrent client",
|
||||||
"fr": "Client torrent distant auto-hébergé"
|
"fr": "Client torrent distant auto-hébergé"
|
||||||
},
|
},
|
||||||
"version": "1.3.9~ynh3",
|
"version": "1.3.9~ynh4",
|
||||||
"url": "https://github.com/boypt/simple-torrent",
|
"url": "https://github.com/boypt/simple-torrent",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
"name": "eric_G"
|
"name": "eric_G"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.3.0"
|
"yunohost": ">= 11.0.9"
|
||||||
},
|
},
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
|
|
|
@ -15,24 +15,3 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
# FUTURE OFFICIAL HELPERS
|
# FUTURE OFFICIAL HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Check the architecture
|
|
||||||
#
|
|
||||||
# example: architecture=$(ynh_detect_arch)
|
|
||||||
#
|
|
||||||
# usage: ynh_detect_arch
|
|
||||||
#
|
|
||||||
# Requires YunoHost version 2.2.4 or higher.
|
|
||||||
ynh_detect_arch() {
|
|
||||||
local architecture
|
|
||||||
if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep aarch64)" ]; then
|
|
||||||
architecture="arm64"
|
|
||||||
elif [ -n "$(uname -m | grep 86)" ]; then
|
|
||||||
architecture="i386"
|
|
||||||
elif [ -n "$(uname -m | grep 64)" ]; then
|
|
||||||
architecture="x86_64"
|
|
||||||
else
|
|
||||||
architecture="unknown"
|
|
||||||
fi
|
|
||||||
echo $architecture
|
|
||||||
}
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ ynh_abort_if_errors
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url=$YNH_APP_ARG_PATH
|
path_url=$YNH_APP_ARG_PATH
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
architecture=$(ynh_detect_arch)
|
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
@ -32,11 +31,11 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
||||||
|
|
||||||
# Check machine architecture (in particular, we don't support ARM 32bit machines)
|
# Stop if architecture is 32-bit ARM
|
||||||
if [ $architecture == "unknown" ]
|
case $YNH_ARCH in
|
||||||
then
|
arm|armhf) ynh_die --message="Sorry, your architecture $YNH_ARCH is not supported by $app. Aborting.";;
|
||||||
ynh_die --message="Sorry, this app cannot be installed on a 32-bit ARM machine."
|
*) ;;
|
||||||
fi
|
esac
|
||||||
|
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||||
|
@ -86,11 +85,11 @@ ynh_script_progression --message="Setting up source files..." --weight=4
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir=$final_path --source_id="$architecture"
|
ynh_setup_source --dest_dir=$final_path --source_id=$YNH_ARCH
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
gzip --decompress $(ynh_detect_arch).gz
|
gzip --decompress $YNH_ARCH.gz
|
||||||
mv $(ynh_detect_arch) $app
|
mv $YNH_ARCH $app
|
||||||
popd
|
popd
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
|
|
@ -21,7 +21,6 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||||
peer_port=$(ynh_app_setting_get --app=$app --key=peer_port)
|
peer_port=$(ynh_app_setting_get --app=$app --key=peer_port)
|
||||||
architecture=$(ynh_detect_arch)
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK VERSION
|
# CHECK VERSION
|
||||||
|
@ -48,11 +47,10 @@ ynh_abort_if_errors
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||||
|
|
||||||
# Check machine architecture (in particular, we don't support ARM 32bit machines)
|
case $YNH_ARCH in
|
||||||
if [ $architecture == "unknown" ]
|
arm|armhf) ynh_die --message="Sorry, your architecture $YNH_ARCH is not supported by $app. Aborting.";;
|
||||||
then
|
*) ;;
|
||||||
ynh_die --message="Sorry, this app cannot be installed on a 32-bit ARM machine."
|
esac
|
||||||
fi
|
|
||||||
|
|
||||||
# Cleaning legacy permissions
|
# Cleaning legacy permissions
|
||||||
if ynh_legacy_permissions_exists; then
|
if ynh_legacy_permissions_exists; then
|
||||||
|
@ -87,11 +85,11 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir=$final_path --source_id="$architecture" --keep="$final_path/config.yml"
|
ynh_setup_source --dest_dir=$final_path --source_id=$YNH_ARCH --keep="config.yml"
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
gzip --decompress $(ynh_detect_arch).gz
|
gzip --decompress $YNH_ARCH.gz
|
||||||
mv $(ynh_detect_arch) $app
|
mv $YNH_ARCH $app
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue