Skip to content

Commit a46ae11

Browse files
committed
bump vchord
Adjust the Immich installer for upstream packaging changes by switching the plugin install path to `plugins/immich-plugin-core` and copying plugin-core artifacts from `packages/plugin-core`. Update the build steps to include `@immich/cli` build/deploy alongside sdk/web, and bump dependency pins for VectorChord (1.0.0) and the libvips source revision.
1 parent 0b1a4de commit a46ae11

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

install/immich-install.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ PG_VERSION="16" PG_MODULES="pgvector" setup_postgresql
162162
ACTUAL_PG_VERSION=$(ls /etc/postgresql/ 2>/dev/null | sort -V | tail -1)
163163
ACTUAL_PG_VERSION=${ACTUAL_PG_VERSION:-16}
164164

165-
VCHORD_RELEASE="0.5.3"
165+
VCHORD_RELEASE="1.0.0"
166166
fetch_and_deploy_gh_release "VectorChord" "tensorchord/VectorChord" "binary" "${VCHORD_RELEASE}" "/tmp" "postgresql-${ACTUAL_PG_VERSION}-vchord_*_$(arch_resolve).deb"
167167

168168
sed -i "s/^#shared_preload.*/shared_preload_libraries = 'vchord.so'/" /etc/postgresql/${ACTUAL_PG_VERSION}/main/postgresql.conf
@@ -282,7 +282,7 @@ msg_ok "(4/5) Compiled imagemagick"
282282

283283
msg_info "(5/5) Compiling libvips"
284284
SOURCE=$SOURCE_DIR/libvips
285-
LIBVIPS_REVISION="17ad2f62dda7e39985955da189183e594683d45e"
285+
LIBVIPS_REVISION="3664cfc5dc2c5661288f5bf5a85ccc51c64c1626"
286286
$STD git clone https://github.com/libvips/libvips.git "$SOURCE"
287287
cd "$SOURCE"
288288
$STD git reset --hard "$LIBVIPS_REVISION"
@@ -306,10 +306,11 @@ INSTALL_DIR="/opt/${APPLICATION}"
306306
UPLOAD_DIR="${INSTALL_DIR}/upload"
307307
SRC_DIR="${INSTALL_DIR}/source"
308308
APP_DIR="${INSTALL_DIR}/app"
309-
PLUGIN_DIR="${APP_DIR}/corePlugin"
309+
PLUGIN_DIR="${APP_DIR}/plugins/immich-plugin-core"
310310
ML_DIR="${APP_DIR}/machine-learning"
311311
GEO_DIR="${INSTALL_DIR}/geodata"
312312
mkdir -p {"${APP_DIR}","${UPLOAD_DIR}","${GEO_DIR}","${INSTALL_DIR}"/cache}
313+
313314
fetch_and_deploy_gh_release "Immich" "immich-app/immich" "tarball" "v3.0.1" "$SRC_DIR"
314315

315316
PNPM_VERSION="$(jq -r '.packageManager | split("@")[1] | split("+")[0]' ${SRC_DIR}/package.json)"
@@ -338,13 +339,13 @@ fi
338339
cp "$APP_DIR"/package.json "$APP_DIR"/bin
339340
sed -i "s|^start|${APP_DIR}/bin/start|" "$APP_DIR"/bin/immich-admin
340341

341-
# openapi & web build
342+
# sdk, cli & web build
342343
cd "$SRC_DIR"
343344
echo "packageImportMethod: hardlink" >>./pnpm-workspace.yaml
344-
$STD pnpm --filter @immich/sdk --filter immich-web --frozen-lockfile --force install
345345
unset SHARP_FORCE_GLOBAL_LIBVIPS
346346
export SHARP_IGNORE_GLOBAL_LIBVIPS=true
347-
$STD pnpm --filter @immich/sdk --filter immich-web build
347+
$STD pnpm --filter @immich/sdk --filter immich-web --filter @immich/cli build
348+
$STD pnpm --filter @immich/cli --prod --no-optional deploy "$APP_DIR"/cli
348349
cp -a web/build "$APP_DIR"/www
349350
cp LICENSE "$APP_DIR"
350351
cd "$SRC_DIR"
@@ -365,10 +366,9 @@ fi
365366
$STD mise exec -- pnpm --filter @immich/sdk --filter @immich/plugin-sdk --filter @immich/plugin-core install --frozen-lockfile
366367
$STD mise exec -- pnpm --filter @immich/sdk --filter @immich/plugin-sdk --filter @immich/plugin-core build
367368
mkdir -p "$PLUGIN_DIR"
368-
cp -r ./dist "$PLUGIN_DIR"/dist
369-
cp ./manifest.json "$PLUGIN_DIR"
369+
cp -r ./packages/plugin-core/dist "$PLUGIN_DIR"/dist
370+
cp ./packages/plugin-core/manifest.json "$PLUGIN_DIR"
370371
msg_ok "Installed Immich Server, Web and Plugin Components"
371-
372372
cd "$SRC_DIR"/machine-learning
373373
$STD useradd -U -s /usr/sbin/nologin -r -M -d "$INSTALL_DIR" immich
374374
mkdir -p "$ML_DIR"

0 commit comments

Comments
 (0)