diff --git a/install.sh b/install.sh index 91b29c8..7a0c579 100755 --- a/install.sh +++ b/install.sh @@ -91,8 +91,9 @@ grep -Rl /usr/src | xargs -n1 sed -i -e "s@/usr/src@$IMMICH_PATH@g" mkdir -p $IMMICH_PATH/cache grep -RlE "\"/build\"|'/build'" | xargs -n1 sed -i -e "s@\"/build\"@\"$APP\"@g" -e "s@'/build'@'$APP'@g" -# Setup pnpm -corepack use pnpm@latest +# Setup pnpm and use the version specified in package.json packageManager. This avoids incompatibility errors with newer pnpm releases +corepack enable +pnpm install # Install extism/js-pdk for extism-js curl -O https://raw.githubusercontent.com/extism/js-pdk/main/install.sh @@ -134,8 +135,8 @@ cp -a plugins/dist $APP/corePlugin/ cp -a plugins/manifest.json $APP/corePlugin/ cp -a LICENSE $APP/ cp -a i18n $APP/../ -cd $APP pnpm store prune +cd $APP cd - # immich-machine-learning @@ -174,6 +175,9 @@ rm cities500.zip # Install sharp cd $APP + +# Copy the packageManager field from the monorepo package.json onto the $APP package.json +jq --argfile source "$TMP/package.json" '.packageManager = $source.packageManager' package.json > tmp.json && mv tmp.json package.json # https://github.com/lovell/sharp/blob/main/src/common.h#L20 VIPS_LOCAL_VERSION="$(pkg-config --modversion vips || true)" VIPS_TARGET_VERSION="8.17.3"