Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

browser(webkit): use webkit generate-bundle tool to generate the minibrowser bundles #3563

Merged
merged 2 commits into from
Aug 28, 2020

Conversation

clopez
Copy link
Contributor

@clopez clopez commented Aug 21, 2020

This changes the archive.sh script to use the webkit generate-bundle tool to generate the MiniBrowser bundles instead of using our custom logic.

pw_run.sh is simplified because the new bundles include a wrapper script that sets the needed LD_LIBRARY_PATH environment variables. pw_run.sh now calls this wrapper script (for GTK or WPE) instead of calling the MiniBrowser binary directly when running from a bundle.

To test this you need to first update webkit to the last checkout:

  1. Update playwright master to de5ecc0 or above
  2. Update the webkit checkout and rebuild webkit
browser_patches/prepare_checkout.sh webkit
browser_patches/webkit/build.sh
  1. Generate the bundle with something like
browser_patches/webkit/archive.sh /tmp/test-new-bundle.zip

... and test it

//CC @aslushnikov

Copy link
Collaborator

@aslushnikov aslushnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

Can we also bump the webkit build number to trigger build with the new build system? (simply advancing the //browser_patches/webkit/BUILD_NUMBER and optionally updating the signature)

The automated way to bump build would be to re-export webkit patch:

$ ./browser_patches/prepare_checkout.sh wk
$ ./browser_patches/export.sh wk

 * This changes the archive.sh script to use the webkit generate-bundle
 tool to generate the MiniBrowser bundles instead of using our custom
 logic.

 * pw_run.sh is simplified because the new bundles include a wrapper
 script that sets the needed LD_LIBRARY_PATH environment variables.
 pw_run.sh now calls this wrapper script (for GTK or WPE) instead of
 calling the MiniBrowser binary directly when running from a bundle.
@clopez
Copy link
Contributor Author

clopez commented Aug 24, 2020

I just updated the BUILD_NUMBER file

@aslushnikov aslushnikov merged commit 19f21b1 into microsoft:master Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants