@@ -46,8 +46,11 @@ function update_script() {
46
46
rm ~ /Dockerfile
47
47
fi
48
48
if [[ -f ~ /.immich_library_revisions ]]; then
49
- curl -fsSLO https://raw.githubusercontent.com/immich-app/base-images/refs/heads/main/server/bin/build-lock.json
50
- jq -cr ' .sources[].revision' ./build-lock.json > ~/.new_revisions
49
+ libraries=(" libjxl" " libheif" " libraw" " imagemagick" " libvips" )
50
+ for library in " ${libraries[@]} " ; do
51
+ curl -fsSLO https://raw.githubusercontent.com/immich-app/base-images/refs/heads/main/server/sources/" $library " .json
52
+ jq -cr ' .revision' ./" $library " .json >> ~/.new_revisions
53
+ done
51
54
readarray -t UPDATED_REVISIONS < <( comm -13 <( sort ~ /.immich_library_revisions) <( sort ~ /.new_revisions) )
52
55
if [[ " ${# UPDATED_REVISIONS[@]} " -gt 0 ]]; then
53
56
readarray -t NAMES < <( for revision in " ${UPDATED_REVISIONS[@]} " ; do
@@ -64,13 +67,13 @@ function update_script() {
64
67
SOURCE=${SOURCE_DIR} /libjxl
65
68
JPEGLI_LIBJPEG_LIBRARY_SOVERSION=" 62"
66
69
JPEGLI_LIBJPEG_LIBRARY_VERSION=" 62.3.0"
67
- : " ${LIBJXL_REVISION:= $(jq -cr ' .sources[] | select(.name == "libjxl"). revision' $BASE_DIR / server/ bin / build-lock .json)} "
70
+ : " ${LIBJXL_REVISION:= $(jq -cr ' .revision' $BASE_DIR / server/ sources / libjxl .json)} "
68
71
$STD git clone https://github.com/libjxl/libjxl.git " $SOURCE "
69
72
cd " $SOURCE "
70
73
$STD git reset --hard " $LIBJXL_REVISION "
71
74
$STD git submodule update --init --recursive --depth 1 --recommend-shallow
72
- $STD git apply " $BASE_DIR " /server/bin/ patches/jpegli-empty-dht-marker.patch
73
- $STD git apply " $BASE_DIR " /server/bin/ patches/jpegli-icc-warning.patch
75
+ $STD git apply " $BASE_DIR " /server/sources/libjxl- patches/jpegli-empty-dht-marker.patch
76
+ $STD git apply " $BASE_DIR " /server/sources/libjxl- patches/jpegli-icc-warning.patch
74
77
mkdir build
75
78
cd build
76
79
$STD cmake \
@@ -102,7 +105,7 @@ function update_script() {
102
105
if [[ " $name " == " libheif" ]]; then
103
106
msg_info " Recompiling libheif"
104
107
SOURCE=${SOURCE_DIR} /libheif
105
- : " ${LIBHEIF_REVISION:= $(jq -cr ' .sources[] | select(.name == "libheif"). revision' $BASE_DIR / server/ bin / build-lock .json)} "
108
+ : " ${LIBHEIF_REVISION:= $(jq -cr ' .revision' $BASE_DIR / server/ sources / libheif .json)} "
106
109
$STD git clone https://github.com/strukturag/libheif.git " $SOURCE "
107
110
cd " $SOURCE "
108
111
$STD git reset --hard " $LIBHEIF_REVISION "
@@ -128,7 +131,7 @@ function update_script() {
128
131
if [[ " $name " == " libraw" ]]; then
129
132
msg_info " Recompiling libraw"
130
133
SOURCE=${SOURCE_DIR} /libraw
131
- : " ${LIBRAW_REVISION:= $(jq -cr ' .sources[] | select(.name == "libraw"). revision' $BASE_DIR / server/ bin / build-lock .json)} "
134
+ : " ${LIBRAW_REVISION:= $(jq -cr ' .revision' $BASE_DIR / server/ sources / libraw .json)} "
132
135
$STD git clone https://github.com/libraw/libraw.git " $SOURCE "
133
136
cd " $SOURCE "
134
137
$STD git reset --hard " $LIBRAW_REVISION "
@@ -144,7 +147,7 @@ function update_script() {
144
147
if [[ " $name " == " imagemagick" ]]; then
145
148
msg_info " Recompiling ImageMagick"
146
149
SOURCE=$SOURCE_DIR /imagemagick
147
- : " ${IMAGEMAGICK_REVISION:= $(jq -cr ' .sources[] | select(.name == "imagemagick"). revision' $BASE_DIR / server/ bin / build-lock .json)} "
150
+ : " ${IMAGEMAGICK_REVISION:= $(jq -cr ' .revision' $BASE_DIR / server/ sources / imagemagick .json)} "
148
151
$STD git clone https://github.com/ImageMagick/ImageMagick.git " $SOURCE "
149
152
cd " $SOURCE "
150
153
$STD git reset --hard " $IMAGEMAGICK_REVISION "
@@ -159,7 +162,7 @@ function update_script() {
159
162
if [[ " $name " == " libvips" ]]; then
160
163
msg_info " Recompiling libvips"
161
164
SOURCE=$SOURCE_DIR /libvips
162
- : " ${LIBVIPS_REVISION:= $(jq -cr ' .sources[] | select(.name == "libvips"). revision' $BASE_DIR / server/ bin / build-lock .json)} "
165
+ : " ${LIBVIPS_REVISION:= $(jq -cr ' .revision' $BASE_DIR / server/ sources / libvips .json)} "
163
166
$STD git clone https://github.com/libvips/libvips.git " $SOURCE "
164
167
cd " $SOURCE "
165
168
$STD git reset --hard " $LIBVIPS_REVISION "
0 commit comments