From 96b76172c0f8161e21ad0cc16c765b8b2949167a Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sun, 11 Feb 2024 09:38:03 +0100 Subject: [PATCH] add tone --- conf/.env | 1 + manifest.toml | 5 +++++ scripts/install | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/conf/.env b/conf/.env index 39b2eb6..70c672b 100644 --- a/conf/.env +++ b/conf/.env @@ -9,3 +9,4 @@ AUDIOBOOKSHELF_GID=__APP__ FFMPEG_PATH=/usr/bin/ffmpeg FFPROBE_PATH=/usr/bin/ffprobe SOURCE=local +TONE_PATH=__INSTALL_DIR__/tone diff --git a/manifest.toml b/manifest.toml index e726e1d..731ccd3 100644 --- a/manifest.toml +++ b/manifest.toml @@ -40,6 +40,11 @@ ram.runtime = "50M" sha256 = "3e813c5c0bd3e7e1e616a9097247b0696f3d3d289ec55729bd6c6115442abd87" autoupdate.strategy = "latest_github_tag" + [resources.sources.tone] + url = "https://github.com/sandreas/tone/releases/download/v0.1.5/tone-0.1.5-linux-x64.tar.gz" + sha256 = "29c197b21c6e36a3b889ebd6bb1fbdd2c95e489ac6508d010adcf6f69ab8ceba" + autoupdate.strategy = "latest_github_release" + [resources.system_user] [resources.install_dir] diff --git a/scripts/install b/scripts/install index cd64e0a..bb24d31 100755 --- a/scripts/install +++ b/scripts/install @@ -25,7 +25,8 @@ ynh_npm install --global npm@7.21.1 ynh_script_progression --message="Setting up source files..." --weight=1 # 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="main" +ynh_setup_source --dest_dir="$install_dir" --source_id="tone" chmod 750 "$install_dir" chmod -R o-rwx "$install_dir"