From 75624dc8ce4cb5789f43cb62a7eecb208c3b20e6 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 4 Aug 2022 18:01:17 +0200 Subject: [PATCH] Make installation compatible with arm64 and armhf architectures --- scripts/_common.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 5260975..38e50e9 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,23 @@ # COMMON VARIABLES #================================================= -PHOTOPRISM_VERSION="220617-bullseye" +case YNH_ARCH in + amd64) + PHOTOPRISM_VERSION="sha256:2a2fc58d5bf77642424854158a06713ce532026bd18a43e07fd71d75365cb8d3" + ;; + + arm64) + PHOTOPRISM_VERSION="sha256:ad6de95e77e90a64487085b55dbdbea21c04aff5a17ca3c8790d1deae19b9ee1" + ;; + + armhf) + PHOTOPRISM_VERSION="sha256:4e0b39a06e0f7ecd11aa8cbd84c739cba3417c99348f52e3433cdeaeeb5474cb" + ;; + + *) + ynh_die --message="Your server architecture ($YNH_ARCH) is not supported." + ;; +esac #pkg_dependencies="libc6-dev libssl-dev libxft-dev libhdf5-serial-dev libpng-dev libheif-examples librsvg2-bin libx264-dev libx265-dev libnss3 libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev libzmq3-dev" pkg_dependencies=""