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
This commit is contained in:
Andrey Lushnikov 2021-02-19 21:31:33 -08:00 committed by GitHub
parent 496aeeba79
commit eb3efb3089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -1,2 +1,2 @@
1437
Changed: dgozman@gmail.com Fri Feb 19 16:12:07 PST 2021
1438
Changed: lushnikov@chromium.com Fri Feb 19 21:08:07 PST 2021

View File

@ -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