diff --git a/manifest.toml b/manifest.toml index b1a4d44..c483e33 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Immich" description.en = "Photo and video backup solution directly from your mobile phone" description.fr = "Sauvegarde de photos et de vidéos directement depuis votre mobile" -version = "1.110.0~ynh1" +version = "1.110.0~ynh2" maintainers = ["ewilly"] @@ -47,6 +47,12 @@ ram.runtime = "500M" autoupdate.strategy = "latest_github_release" + [resources.sources.ffmpeg-static] + amd64.url = "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz" + amd64.sha256 = "5341ac10c505b9217740790d56d8e63e590d74ca81e3e56796e4c98f7be80b61" + arm64.url = "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz" + arm64.sha256 = "7387f7aae3ae88cbaad5c66155fdf23ce0c0dbeaf4b1e573d704817938cd1b8e" + [resources.ports] main.default = 3001 machinelearning.default = 3003 @@ -126,12 +132,5 @@ ram.runtime = "500M" "postgresql-client-common" ] - [resources.apt.extras.jellyfin-ffmpeg] - repo = "deb [arch=__YNH_ARCH__] https://repo.jellyfin.org/debian __YNH_DEBIAN_VERSION__ main" - key = "https://repo.jellyfin.org/jellyfin_team.gpg.key" - packages = [ - "jellyfin-ffmpeg6" - ] - [resources.database] type = "postgresql" diff --git a/scripts/_common.sh b/scripts/_common.sh index 6d47c46..d902357 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -122,8 +122,8 @@ myynh_install_immich() { # Thanks to https://github.com/arter97/immich-native # Check https://github.com/immich-app/base-images/blob/main/server/Dockerfile for changes - # Add jellyfin-ffmpeg to $PATH - PATH="/usr/lib/jellyfin-ffmpeg:$PATH" + # Add ffmpeg-static direcotry to $PATH + PATH="$ffmpeg_static_dir:$PATH" # Use ynh nodejs helper ynh_use_nodejs diff --git a/scripts/install b/scripts/install index 5466941..594032c 100755 --- a/scripts/install +++ b/scripts/install @@ -16,6 +16,9 @@ ynh_script_progression --message="Setting up source files..." --weight=1 source_dir="$install_dir/source" ynh_setup_source --source_id="main" --dest_dir="$source_dir" +ffmpeg_static_dir="$install_dir/ffmpeg-static" +ynh_setup_source --source_id="ffmpeg-static" --dest_dir="$ffmpeg_static_dir" + #================================================= # CHECK PYTHON VERSION AND COMPILE IF NEEDED #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 5108b66..c6ffcff 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -26,9 +26,13 @@ ynh_systemd_action --service_name="$app-machine-learning" --action="stop" ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_secure_remove --file="$install_dir" + source_dir="$install_dir/source" ynh_setup_source --source_id="main" --dest_dir="$source_dir" --full_replace=1 +ffmpeg_static_dir="$install_dir/ffmpeg-static" +ynh_setup_source --source_id="ffmpeg-static" --dest_dir="$ffmpeg_static_dir" --full_replace=1 + #================================================= # CHECK PYTHON VERSION AND COMPILE IF NEEDED #=================================================