@@ -32,6 +32,10 @@ function update_script() {
32
32
PNPM_VERSION=" $( curl -fsSL " https://raw.githubusercontent.com/immich-app/immich/refs/heads/main/package.json" | jq -r ' .packageManager | split("@")[1]' ) "
33
33
NODE_VERSION=" 22" NODE_MODULE=" pnpm@${PNPM_VERSION} " setup_nodejs
34
34
35
+ if grep -q ' 13' /etc/os-release && dpkg -l | grep -q " libmimalloc2.0" ; then
36
+ $STD apt-get update && $STD apt-get install -y libmimalloc3
37
+ fi
38
+
35
39
STAGING_DIR=/opt/staging
36
40
BASE_DIR=${STAGING_DIR} /base-images
37
41
SOURCE_DIR=${STAGING_DIR} /image-source
@@ -201,7 +205,7 @@ function compile_libjxl() {
201
205
JPEGLI_LIBJPEG_LIBRARY_SOVERSION=" 62"
202
206
JPEGLI_LIBJPEG_LIBRARY_VERSION=" 62.3.0"
203
207
: " ${LIBJXL_REVISION:= $(jq -cr ' .revision' " $BASE_DIR " / server/ sources/ libjxl.json)} "
204
- if [[ " ${update :- } " ]] || [[ " $ LIBJXL_REVISION" != " $( grep ' libjxl' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
208
+ if [[ " $LIBJXL_REVISION " != " $( grep ' libjxl' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
205
209
msg_info " Recompiling libjxl"
206
210
if [[ -d " $SOURCE " ]]; then rm -rf " $SOURCE " ; fi
207
211
$STD git clone https://github.com/libjxl/libjxl.git " $SOURCE "
@@ -278,9 +282,8 @@ function compile_libheif() {
278
282
279
283
function compile_libraw() {
280
284
SOURCE=${SOURCE_DIR} /libraw
281
- local update
282
285
: " ${LIBRAW_REVISION:= $(jq -cr ' .revision' " $BASE_DIR " / server/ sources/ libraw.json)} "
283
- if [[ " ${update :- } " ]] || [[ " $ LIBRAW_REVISION" != " $( grep ' libraw' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
286
+ if [[ " $LIBRAW_REVISION " != " $( grep ' libraw' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
284
287
msg_info " Recompiling libraw"
285
288
if [[ -d " $SOURCE " ]]; then rm -rf " $SOURCE " ; fi
286
289
$STD git clone https://github.com/libraw/libraw.git " $SOURCE "
@@ -301,7 +304,8 @@ function compile_libraw() {
301
304
function compile_imagemagick() {
302
305
SOURCE=$SOURCE_DIR /imagemagick
303
306
: " ${IMAGEMAGICK_REVISION:= $(jq -cr ' .revision' " $BASE_DIR " / server/ sources/ imagemagick.json)} "
304
- if [[ " ${update:- } " ]] || [[ " $IMAGEMAGICK_REVISION " != " $( grep ' imagemagick' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
307
+ if [[ " $IMAGEMAGICK_REVISION " != " $( grep ' imagemagick' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]] ||
308
+ ! grep -q ' DMAGICK_LIBRAW' /usr/local/lib/ImageMagick-7* /config-Q16HDRI/configure.xml; then
305
309
msg_info " Recompiling ImageMagick"
306
310
if [[ -d " $SOURCE " ]]; then rm -rf " $SOURCE " ; fi
307
311
$STD git clone https://github.com/ImageMagick/ImageMagick.git " $SOURCE "
@@ -321,7 +325,7 @@ function compile_imagemagick() {
321
325
function compile_libvips() {
322
326
SOURCE=$SOURCE_DIR /libvips
323
327
: " ${LIBVIPS_REVISION:= $(jq -cr ' .revision' " $BASE_DIR " / server/ sources/ libvips.json)} "
324
- if [[ " ${update :- } " ]] || [[ " $ LIBVIPS_REVISION" != " $( grep ' libvips' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
328
+ if [[ " $LIBVIPS_REVISION " != " $( grep ' libvips' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
325
329
msg_info " Recompiling libvips"
326
330
if [[ -d " $SOURCE " ]]; then rm -rf " $SOURCE " ; fi
327
331
$STD git clone https://github.com/libvips/libvips.git " $SOURCE "
0 commit comments