Skip to content

Commit eb3efb3

Browse files
authored
fix: do not ship broken symlinks in webkit for mac (#5512)
Since we don't ship things like WebKitPluginAgent, we can safely remove all the symlinks that point to the missing targets. Fixes #5472
1 parent 496aeeb commit eb3efb3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

browser_patches/webkit/BUILD_NUMBER

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1437
2-
Changed: dgozman@gmail.com Fri Feb 19 16:12:07 PST 2021
1+
1438
2+
Changed: lushnikov@chromium.com Fri Feb 19 21:08:07 PST 2021

browser_patches/webkit/archive.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ createZipForMac() {
131131
# copy protocol
132132
node $SCRIPTS_DIR/concat_protocol.js > $tmpdir/protocol.json
133133

134+
# Remove all broken symlinks. @see https://github.com/microsoft/playwright/issues/5472
135+
find "${tmpdir}" -type l ! -exec test -e {} \; -print | xargs rm
136+
134137
# zip resulting directory and cleanup TMP.
135138
ditto -c -k $tmpdir $ZIP_PATH
136139
rm -rf $tmpdir

0 commit comments

Comments
 (0)