From 7941230ecf882b72277d98a6f57b72901407779e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 19 Mar 2021 13:57:47 +0100 Subject: [PATCH] Upgrade to 1.2.16 (#24) --- README.md | 2 +- README_fr.md | 2 +- conf/arm64.src | 4 ++-- conf/armv5.src | 7 ------- conf/armv6.src | 7 ------- conf/armv7.src | 7 ------- conf/i386.src | 4 ++-- conf/x86_64.src | 4 ++-- manifest.json | 2 +- scripts/_common.sh | 6 ------ scripts/install | 12 +++++++----- 11 files changed, 16 insertions(+), 41 deletions(-) delete mode 100644 conf/armv5.src delete mode 100644 conf/armv6.src delete mode 100644 conf/armv7.src diff --git a/README.md b/README.md index 895209d..6ae9824 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Simple Torrent is a self-hosted remote torrent client, written in Go (golang). Started torrents remotely, download sets of files on the local disk of the server, which are then retrievable or streamable via HTTP. -**Shipped version:** 1.2.15 +**Shipped version:** 1.2.16 ## Screenshots diff --git a/README_fr.md b/README_fr.md index a486232..e18af23 100644 --- a/README_fr.md +++ b/README_fr.md @@ -12,7 +12,7 @@ Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install Simple Torrent est un client torrent distant auto-hébergé, écrit en Go (golang). Démarrez des torrents à distance, téléchargez des ensembles de fichiers sur le disque local du serveur, qui sont ensuite récupérables ou diffusables via HTTP. -**Version incluse :** 1.2.15 +**Version incluse :** 1.2.16 ## Captures d'écran diff --git a/conf/arm64.src b/conf/arm64.src index f452db7..bde04fb 100644 --- a/conf/arm64.src +++ b/conf/arm64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.15/cloud-torrent_linux_arm64.gz -SOURCE_SUM=e0dccf7e1abbba502cf93cd67623ca495c9c42b379bd8007a60750a5a0fcae86 +SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.16/cloud-torrent_linux_arm64.gz +SOURCE_SUM=58f5c04066e3a959f6e272fdab966045ebabf77895b14af914efb972ccc479cf SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=gz SOURCE_IN_SUBDIR=false diff --git a/conf/armv5.src b/conf/armv5.src deleted file mode 100644 index a671aa4..0000000 --- a/conf/armv5.src +++ /dev/null @@ -1,7 +0,0 @@ -SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.15/cloud-torrent_linux_arm_armv5.gz -SOURCE_SUM=a41067c4530e7ffc80f4f3378fb27bd9b51f3452bc3edda05378a67bbb0b3bb8 -SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=gz -SOURCE_IN_SUBDIR=false -SOURCE_FILENAME= -SOURCE_EXTRACT=false \ No newline at end of file diff --git a/conf/armv6.src b/conf/armv6.src deleted file mode 100644 index 3a2e013..0000000 --- a/conf/armv6.src +++ /dev/null @@ -1,7 +0,0 @@ -SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.15/cloud-torrent_linux_arm_armv6.gz -SOURCE_SUM=57729347785e7bf555c3aa3ecbc0368779ca24f276e934f9bdc03c0ae13ad566 -SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=gz -SOURCE_IN_SUBDIR=false -SOURCE_FILENAME= -SOURCE_EXTRACT=false \ No newline at end of file diff --git a/conf/armv7.src b/conf/armv7.src deleted file mode 100644 index 49fe41e..0000000 --- a/conf/armv7.src +++ /dev/null @@ -1,7 +0,0 @@ -SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.15/cloud-torrent_linux_arm_armv7.gz -SOURCE_SUM=6b8eb4577011c65a14a03042317ec6c892880b8c6de6d55db96c16bb3c114d91 -SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=gz -SOURCE_IN_SUBDIR=false -SOURCE_FILENAME= -SOURCE_EXTRACT=false \ No newline at end of file diff --git a/conf/i386.src b/conf/i386.src index e103d60..fc5e1ec 100644 --- a/conf/i386.src +++ b/conf/i386.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.15/cloud-torrent_linux_386.gz -SOURCE_SUM=1a6782b263e0f08cb70b0bd93904b9b3721a2acb4b7cb39776440c5084d22e13 +SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.16/cloud-torrent_linux_386.gz +SOURCE_SUM=37de8ebc2dc20637f067e5225e4fca5fc2838c817a17f691c329370966c518c6 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=gz SOURCE_IN_SUBDIR=false diff --git a/conf/x86_64.src b/conf/x86_64.src index de37768..953adf4 100644 --- a/conf/x86_64.src +++ b/conf/x86_64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.15/cloud-torrent_linux_amd64.gz -SOURCE_SUM=c51d2c7ff9f7711c71de649dd81ea5146d35147e35c50102126b5d2523d24060 +SOURCE_URL=https://github.com/boypt/simple-torrent/releases/download/1.2.16/cloud-torrent_linux_amd64.gz +SOURCE_SUM=b8aea61e916bf0c5e6db17373b638993edf9ce418d06c741879760ca91373447 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=gz SOURCE_IN_SUBDIR=false diff --git a/manifest.json b/manifest.json index 94b86bc..ca68de8 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Self-hosted remote torrent client", "fr": "Client torrent distant auto-hébergé" }, - "version": "1.2.15~ynh4", + "version": "1.2.16~ynh1", "url": "https://github.com/boypt/simple-torrent", "license": "AGPL-3.0-only", "maintainer": { diff --git a/scripts/_common.sh b/scripts/_common.sh index 9d4fcae..3424326 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -31,12 +31,6 @@ ynh_detect_arch() { architecture="i386" elif [ -n "$(uname -m | grep 64)" ]; then architecture="x86_64" - elif [ -n "$(uname -m | grep armv7)" ]; then - architecture="armv7" - elif [ -n "$(uname -m | grep armv6)" ]; then - architecture="armv6" - elif [ -n "$(uname -m | grep armv5)" ]; then - architecture="armv5" else architecture="unknown" fi diff --git a/scripts/install b/scripts/install index 7e7a3ff..2b61004 100644 --- a/scripts/install +++ b/scripts/install @@ -106,13 +106,15 @@ mkdir -p /home/yunohost.app/$app/{torrents,downloads} #================================================= ynh_script_progression --message="Modifying a config file..." --weight=1 -cp ../conf/config.default.json "$final_path/config.json" +# cp ../conf/config.default.json "$final_path/config.json" -# Main config File -ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/config.json" -ynh_replace_string --match_string="__PEER_PORT__" --replace_string="$peer_port" --target_file="$final_path/config.json" +# # Main config File +# ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/config.json" +# ynh_replace_string --match_string="__PEER_PORT__" --replace_string="$peer_port" --target_file="$final_path/config.json" -ynh_store_file_checksum --file="$final_path/config.json" +# ynh_store_file_checksum --file="$final_path/config.json" + +ynh_add_config --template="../conf/config.default.json" --destination="$final_path/config.json" #================================================= # SETUP SYSTEMD