@@ -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
@@ -200,7 +204,7 @@ function compile_libjxl() {
200
204
JPEGLI_LIBJPEG_LIBRARY_SOVERSION=" 62"
201
205
JPEGLI_LIBJPEG_LIBRARY_VERSION=" 62.3.0"
202
206
: " ${LIBJXL_REVISION:= $(jq -cr ' .revision' " $BASE_DIR " / server/ sources/ libjxl.json)} "
203
- if [[ " ${update :- } " ]] || [[ " $ LIBJXL_REVISION" != " $( grep ' libjxl' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
207
+ if [[ " $LIBJXL_REVISION " != " $( grep ' libjxl' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
204
208
msg_info " Recompiling libjxl"
205
209
if [[ -d " $SOURCE " ]]; then rm -rf " $SOURCE " ; fi
206
210
$STD git clone https://github.com/libjxl/libjxl.git " $SOURCE "
@@ -277,9 +281,8 @@ function compile_libheif() {
277
281
278
282
function compile_libraw() {
279
283
SOURCE=${SOURCE_DIR} /libraw
280
- local update
281
284
: " ${LIBRAW_REVISION:= $(jq -cr ' .revision' " $BASE_DIR " / server/ sources/ libraw.json)} "
282
- if [[ " ${update :- } " ]] || [[ " $ LIBRAW_REVISION" != " $( grep ' libraw' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
285
+ if [[ " $LIBRAW_REVISION " != " $( grep ' libraw' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
283
286
msg_info " Recompiling libraw"
284
287
if [[ -d " $SOURCE " ]]; then rm -rf " $SOURCE " ; fi
285
288
$STD git clone https://github.com/libraw/libraw.git " $SOURCE "
@@ -300,7 +303,8 @@ function compile_libraw() {
300
303
function compile_imagemagick() {
301
304
SOURCE=$SOURCE_DIR /imagemagick
302
305
: " ${IMAGEMAGICK_REVISION:= $(jq -cr ' .revision' " $BASE_DIR " / server/ sources/ imagemagick.json)} "
303
- if [[ " ${update:- } " ]] || [[ " $IMAGEMAGICK_REVISION " != " $( grep ' imagemagick' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
306
+ if [[ " $IMAGEMAGICK_REVISION " != " $( grep ' imagemagick' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]] ||
307
+ ! grep -q ' DMAGICK_LIBRAW' /usr/local/lib/ImageMagick-7* /config-Q16HDRI/configure.xml; then
304
308
msg_info " Recompiling ImageMagick"
305
309
if [[ -d " $SOURCE " ]]; then rm -rf " $SOURCE " ; fi
306
310
$STD git clone https://github.com/ImageMagick/ImageMagick.git " $SOURCE "
@@ -320,7 +324,7 @@ function compile_imagemagick() {
320
324
function compile_libvips() {
321
325
SOURCE=$SOURCE_DIR /libvips
322
326
: " ${LIBVIPS_REVISION:= $(jq -cr ' .revision' " $BASE_DIR " / server/ sources/ libvips.json)} "
323
- if [[ " ${update :- } " ]] || [[ " $ LIBVIPS_REVISION" != " $( grep ' libvips' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
327
+ if [[ " $LIBVIPS_REVISION " != " $( grep ' libvips' ~ /.immich_library_revisions | awk ' {print $2}' ) " ]]; then
324
328
msg_info " Recompiling libvips"
325
329
if [[ -d " $SOURCE " ]]; then rm -rf " $SOURCE " ; fi
326
330
$STD git clone https://github.com/libvips/libvips.git " $SOURCE "
0 commit comments