From 02d5c00873e6514212e3ff5ea410a8963f2a0fae Mon Sep 17 00:00:00 2001 From: Petter Blomberg Date: Thu, 1 Jan 2026 15:28:51 +0100 Subject: [PATCH] macOS: move rpath configuration to build step for reliability --- scripts/package-mac-app.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/package-mac-app.sh b/scripts/package-mac-app.sh index 1606cee8d..cb8fe219c 100755 --- a/scripts/package-mac-app.sh +++ b/scripts/package-mac-app.sh @@ -43,7 +43,7 @@ fi cd "$ROOT_DIR/apps/macos" echo "🔨 Building $PRODUCT ($BUILD_CONFIG)" -swift build -c "$BUILD_CONFIG" --product "$PRODUCT" --build-path "$BUILD_PATH" +swift build -c "$BUILD_CONFIG" --product "$PRODUCT" --build-path "$BUILD_PATH" -Xlinker -rpath -Xlinker @executable_path/../Frameworks BIN="$BUILD_PATH/$BUILD_CONFIG/$PRODUCT" echo "pkg: binary $BIN" >&2 @@ -87,7 +87,6 @@ if [ -d "$SPARKLE_FRAMEWORK" ]; then echo "✨ Embedding Sparkle.framework" cp -R "$SPARKLE_FRAMEWORK" "$APP_ROOT/Contents/Frameworks/" chmod -R a+rX "$APP_ROOT/Contents/Frameworks/Sparkle.framework" - install_name_tool -add_rpath "@executable_path/../Frameworks" "$APP_ROOT/Contents/MacOS/Clawdis" fi echo "🖼 Copying app icon"