1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/immich_ynh.git synced 2024-09-03 20:36:24 +02:00

Move to ffmpeg-static

This commit is contained in:
Sylvain 2024-07-29 13:12:32 +02:00
parent 93efd7aacd
commit 3d286c51e6
4 changed files with 16 additions and 10 deletions

View file

@ -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"

View file

@ -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

View file

@ -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
#=================================================

View file

@ -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
#=================================================