1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoprism_ynh.git synced 2024-09-03 19:56:41 +02:00

Merge pull request #19 from YunoHost-Apps/arch

Make installation compatible with arm64 and armhf architectures
This commit is contained in:
Limezy 2022-08-09 15:20:22 +08:00 committed by GitHub
commit 76bc5efcae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 1 deletions

View file

@ -4,7 +4,25 @@
# COMMON VARIABLES # COMMON VARIABLES
#================================================= #=================================================
PHOTOPRISM_VERSION="220730-bullseye" function detect_arch() {
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="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="" pkg_dependencies=""

View file

@ -124,6 +124,7 @@ ynh_script_progression --message="Making install..."
# Install photoprism # Install photoprism
pushd $final_path/build pushd $final_path/build
detect_arch
./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION ./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION
popd popd
mkdir -p "$final_path/live/" mkdir -p "$final_path/live/"

View file

@ -120,6 +120,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
# Install photoprism # Install photoprism
pushd $final_path/build pushd $final_path/build
detect_arch
./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION ./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION
popd popd
mkdir -p "$final_path/live/" mkdir -p "$final_path/live/"