From 909a196bfdd12ce7ad919419b50d0ab0592e4e0b Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Fri, 19 Feb 2021 09:26:19 -0700 Subject: [PATCH] fix: do not ship broken symlinks in webkit for mac Since we don't ship things like WebKitPluginAgent, we can safely remove all the symlinks that point to the missing targets. Fixes #5472 --- browser_patches/webkit/archive.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser_patches/webkit/archive.sh b/browser_patches/webkit/archive.sh index 0d640216baa21e..adec84818e61f0 100755 --- a/browser_patches/webkit/archive.sh +++ b/browser_patches/webkit/archive.sh @@ -131,6 +131,9 @@ createZipForMac() { # copy protocol node $SCRIPTS_DIR/concat_protocol.js > $tmpdir/protocol.json + # Remove all broken symlinks. @see https://github.com/microsoft/playwright/issues/5472 + find "${tmpdir}" -type l ! -exec test -e {} \; -print | xargs rm + # zip resulting directory and cleanup TMP. ditto -c -k $tmpdir $ZIP_PATH rm -rf $tmpdir