From bfd4de7c168025de3ece67914abb0910f78aa474 Mon Sep 17 00:00:00 2001 From: zebrapurring <> Date: Sun, 8 Dec 2024 02:36:04 +0100 Subject: [PATCH] Fix hardcoded paths --- build_pkg.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_pkg.sh b/build_pkg.sh index c4fbe3b..ab64508 100755 --- a/build_pkg.sh +++ b/build_pkg.sh @@ -134,6 +134,9 @@ build_immich "$staging_dir/immich" "$dist_dir" build_immich_machine_learning "$staging_dir/immich" "$dist_dir" fetch_immich_geodata "$dist_dir" +# Fix paths in generated root directory +grep -rlI --null "$root_dir" "$root_dir" | xargs -0 sed -i "" "s|$root_dir||g" + # Copy PKG resources mkdir -p "$root_dir/Library/LaunchDaemons" find ./launchd -type f -name "*.plist" | while read -r f; do