Release v2.1.0

Co-authored-by: Bj Tecu <github@bujorel.net>
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
Juhyung Park
2025-10-16 22:42:55 +09:00
parent c186d0e9bb
commit 59d930b860
2 changed files with 19 additions and 16 deletions

View File

@@ -8,7 +8,7 @@ This repository provides instructions and helper scripts to install [Immich](htt
* This guide installs Immich to `/var/lib/immich`. To change it, replace it to the directory you want in this README, `install.sh`, `immich.service`, `immich-machine-learning.service`. * This guide installs Immich to `/var/lib/immich`. To change it, replace it to the directory you want in this README, `install.sh`, `immich.service`, `immich-machine-learning.service`.
* The [install.sh](install.sh) script currently is using Immich v1.135.3. It should be noted that due to the fast-evolving nature of Immich, the install script may get broken if you replace the `$REV` to something more recent. * The [install.sh](install.sh) script currently is using Immich v2.1.0. It should be noted that due to the fast-evolving nature of Immich, the install script may get broken if you replace the `$REV` to something more recent.
* `mimalloc` is deliberately disabled as this is a native install and sharing system library makes more sense. * `mimalloc` is deliberately disabled as this is a native install and sharing system library makes more sense.

View File

@@ -2,7 +2,7 @@
set -xeuo pipefail set -xeuo pipefail
REV=v1.135.3 REV=v2.1.0
IMMICH_PATH=/var/lib/immich IMMICH_PATH=/var/lib/immich
APP=$IMMICH_PATH/app APP=$IMMICH_PATH/app
@@ -59,7 +59,7 @@ umask 077
rm -rf $APP $APP/../i18n rm -rf $APP $APP/../i18n
mkdir -p $APP mkdir -p $APP
# Wipe npm, uv, etc # Wipe pnpm, uv, etc
# This expects immich user's home directory to be on $IMMICH_PATH/home # This expects immich user's home directory to be on $IMMICH_PATH/home
rm -rf $IMMICH_PATH/home rm -rf $IMMICH_PATH/home
mkdir -p $IMMICH_PATH/home mkdir -p $IMMICH_PATH/home
@@ -81,31 +81,33 @@ grep -Rl /usr/src | xargs -n1 sed -i -e "s@/usr/src@$IMMICH_PATH@g"
mkdir -p $IMMICH_PATH/cache mkdir -p $IMMICH_PATH/cache
grep -RlE "\"/build\"|'/build'" | xargs -n1 sed -i -e "s@\"/build\"@\"$APP\"@g" -e "s@'/build'@'$APP'@g" grep -RlE "\"/build\"|'/build'" | xargs -n1 sed -i -e "s@\"/build\"@\"$APP\"@g" -e "s@'/build'@'$APP'@g"
# Setup pnpm
corepack use pnpm@latest
# immich-server # immich-server
cd server cd server
npm ci pnpm install --frozen-lockfile --force
npm run build pnpm run build
npm prune --omit=dev --omit=optional pnpm prune --prod --no-optional --config.ci=true
cd - cd -
cd open-api/typescript-sdk cd open-api/typescript-sdk
npm ci pnpm install --frozen-lockfile --force
npm run build pnpm run build
cd - cd -
cd web cd web
npm ci pnpm install --frozen-lockfile --force
npm run build pnpm run build
cd - cd -
cp -a server/node_modules server/dist server/bin $APP/ cp -aL server/node_modules server/dist server/bin $APP/
cp -a web/build $APP/www cp -a web/build $APP/www
cp -a server/resources server/package.json server/package-lock.json $APP/ cp -a server/resources server/package.json pnpm-lock.yaml $APP/
cp -a server/start*.sh $APP/
cp -a LICENSE $APP/ cp -a LICENSE $APP/
cp -a i18n $APP/../ cp -a i18n $APP/../
cd $APP cd $APP
npm cache clean --force pnpm store prune
cd - cd -
# immich-machine-learning # immich-machine-learning
@@ -137,7 +139,7 @@ rm cities500.zip
# Install sharp # Install sharp
cd $APP cd $APP
npm install sharp pnpm install sharp
# Setup upload directory # Setup upload directory
mkdir -p $IMMICH_PATH/upload mkdir -p $IMMICH_PATH/upload
@@ -206,7 +208,8 @@ fi
rm -rf \ rm -rf \
$TMP \ $TMP \
$IMMICH_PATH/home/.wget-hsts \ $IMMICH_PATH/home/.wget-hsts \
$IMMICH_PATH/home/.npm \ $IMMICH_PATH/home/.pnpm \
$IMMICH_PATH/home/.local/share/pnpm \
$IMMICH_PATH/home/.cache $IMMICH_PATH/home/.cache
echo echo