@@ -84,6 +84,13 @@ if [[ "$CTTYPE" == "0" && -d /dev/dri ]]; then
8484fi
8585msg_ok " Dependencies Installed"
8686
87+ msg_info " Installing Mise"
88+ curl -fSs https://mise.jdx.dev/gpg-key.pub | tee /etc/apt/keyrings/mise-archive-keyring.pub 1> /dev/null
89+ echo " deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.pub arch=amd64] https://mise.jdx.dev/deb stable main" | tee /etc/apt/sources.list.d/mise.list
90+ $STD apt update
91+ $STD apt install -y mise
92+ msg_ok " Installed Mise"
93+
8794read -r -p " ${TAB3} Install OpenVINO dependencies for Intel HW-accelerated machine-learning? y/N " prompt
8895if [[ ${prompt,,} =~ ^(y| yes)$ ]]; then
8996 msg_info " Installing OpenVINO dependencies"
@@ -277,6 +284,7 @@ INSTALL_DIR="/opt/${APPLICATION}"
277284UPLOAD_DIR=" ${INSTALL_DIR} /upload"
278285SRC_DIR=" ${INSTALL_DIR} /source"
279286APP_DIR=" ${INSTALL_DIR} /app"
287+ PLUGIN_DIR=" ${APP_DIR} /corePlugin"
280288ML_DIR=" ${APP_DIR} /machine-learning"
281289GEO_DIR=" ${INSTALL_DIR} /geodata"
282290mkdir -p " $INSTALL_DIR "
@@ -314,7 +322,18 @@ cp LICENSE "$APP_DIR"
314322$STD pnpm --filter @immich/sdk --filter @immich/cli --frozen-lockfile install
315323$STD pnpm --filter @immich/sdk --filter @immich/cli build
316324$STD pnpm --filter @immich/cli --prod --no-optional deploy " $APP_DIR " /cli
317- msg_ok " Installed Immich Server and Web Components"
325+
326+ # plugins
327+ cd " $SRC_DIR "
328+ $STD mise trust --ignore ./mise.toml
329+ $STD mise trust ./plugins/mise.toml
330+ cd plugins
331+ $STD mise install
332+ $STD mise run build
333+ mkdir -p " $PLUGIN_DIR "
334+ cp -r ./dist " $PLUGIN_DIR " /dist
335+ cp ./manifest.json " $PLUGIN_DIR "
336+ msg_ok " Installed Immich Server, Web and Plugin Components"
318337
319338cd " $SRC_DIR " /machine-learning
320339$STD useradd -U -s /usr/sbin/nologin -r -M -d " $INSTALL_DIR " immich
@@ -378,6 +397,10 @@ DB_VECTOR_EXTENSION=vectorchord
378397REDIS_HOSTNAME=127.0.0.1
379398IMMICH_MACHINE_LEARNING_URL=http://127.0.0.1:3003
380399MACHINE_LEARNING_CACHE_FOLDER=${INSTALL_DIR} /cache
400+ ## - For OpenVINO only - uncomment below to increase
401+ ## - inference speed while reducing accuracy
402+ ## - Default is FP32
403+ # MACHINE_LEARNING_OPENVINO_PRECISION=FP16
381404
382405IMMICH_MEDIA_LOCATION=${UPLOAD_DIR}
383406EOF
0 commit comments