Skip to content

Commit 132e49f

Browse files
authored
Immich: Updates for v2.2.0 (#8770)
* replace for-loop with curl native for multiple downloads * add ccache dependency for OCR feature * Update NodeJS to 24 * bump pinned version to 2.2.0
1 parent edfaeb8 commit 132e49f

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

ct/immich.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function update_script() {
3737

3838
setup_uv
3939
PNPM_VERSION="$(curl -fsSL "https://raw.githubusercontent.com/immich-app/immich/refs/heads/main/package.json" | jq -r '.packageManager | split("@")[1]')"
40-
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
40+
NODE_VERSION="24" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
4141

4242
if [[ ! -f /etc/apt/preferences.d/preferences ]]; then
4343
msg_info "Adding Debian Testing repo"
@@ -93,7 +93,7 @@ EOF
9393
msg_ok "Image-processing libraries up to date"
9494
fi
9595

96-
RELEASE="2.1.0"
96+
RELEASE="2.2.0"
9797
if check_for_gh_release "immich" "immich-app/immich" "${RELEASE}"; then
9898
msg_info "Stopping Services"
9999
systemctl stop immich-web
@@ -113,6 +113,9 @@ EOF
113113
rm ./vchord.deb
114114
msg_ok "Upgraded VectorChord to v${VCHORD_RELEASE}"
115115
fi
116+
if ! dpkg -l | grep -q ccache; then
117+
$STD apt-get install -yqq ccache
118+
fi
116119

117120
INSTALL_DIR="/opt/${APP}"
118121
UPLOAD_DIR="$(sed -n '/^IMMICH_MEDIA_LOCATION/s/[^=]*=//p' /opt/immich/.env)"

install/immich-install.sh

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ $STD apt-get install --no-install-recommends -y \
6464
libdav1d-dev \
6565
libhwy-dev \
6666
libwebp-dev \
67-
libaom-dev
67+
libaom-dev \
68+
ccache
6869
curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key | gpg --dearmor -o /etc/apt/keyrings/jellyfin.gpg
6970
DPKG_ARCHITECTURE="$(dpkg --print-architecture)"
7071
export DPKG_ARCHITECTURE
@@ -126,7 +127,7 @@ $STD apt-get install -t testing --no-install-recommends -yqq libmimalloc3
126127
msg_ok "Installed libmimalloc3"
127128

128129
PNPM_VERSION="$(curl -fsSL "https://raw.githubusercontent.com/immich-app/immich/refs/heads/main/package.json" | jq -r '.packageManager | split("@")[1]')"
129-
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
130+
NODE_VERSION="24" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
130131
PG_VERSION="16" PG_MODULES="pgvector" setup_postgresql
131132

132133
msg_info "Setting up Postgresql Database"
@@ -287,7 +288,7 @@ GEO_DIR="${INSTALL_DIR}/geodata"
287288
mkdir -p "$INSTALL_DIR"
288289
mkdir -p {"${APP_DIR}","${UPLOAD_DIR}","${GEO_DIR}","${INSTALL_DIR}"/cache}
289290

290-
fetch_and_deploy_gh_release "immich" "immich-app/immich" "tarball" "v2.1.0" "$SRC_DIR"
291+
fetch_and_deploy_gh_release "immich" "immich-app/immich" "tarball" "v2.2.0" "$SRC_DIR"
291292

292293
msg_info "Installing ${APPLICATION} (patience)"
293294

@@ -351,15 +352,10 @@ ln -s "$UPLOAD_DIR" "$ML_DIR"/upload
351352

352353
msg_info "Installing GeoNames data"
353354
cd "$GEO_DIR"
354-
URL_LIST=(
355-
https://download.geonames.org/export/dump/admin1CodesASCII.txt
356-
https://download.geonames.org/export/dump/admin2Codes.txt
357-
https://download.geonames.org/export/dump/cities500.zip
358-
https://raw.githubusercontent.com/nvkelso/natural-earth-vector/v5.1.2/geojson/ne_10m_admin_0_countries.geojson
359-
)
360-
for geo in "${URL_LIST[@]}"; do
361-
curl -fsSLO "$geo"
362-
done
355+
curl -fsSLZ -O "https://download.geonames.org/export/dump/admin1CodesASCII.txt" \
356+
-O "https://download.geonames.org/export/dump/admin2Codes.txt" \
357+
-O "https://download.geonames.org/export/dump/cities500.zip" \
358+
-O "https://raw.githubusercontent.com/nvkelso/natural-earth-vector/v5.1.2/geojson/ne_10m_admin_0_countries.geojson"
363359
unzip -q cities500.zip
364360
date --iso-8601=seconds | tr -d "\n" >geodata-date.txt
365361
rm cities500.zip

0 commit comments

Comments
 (0)