Skip to content
New issue

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

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

Already on GitHub? # to your account

Improve Playwright handling #479

Merged
merged 2 commits into from
Jan 7, 2023
Merged

Conversation

Syer10
Copy link
Collaborator

@Syer10 Syer10 commented Jan 7, 2023

  • In bundlers pre-install Chromium
  • Only ever download chromium, other browsers are skipped

< try (FileSystem fileSystem = "jar".equals(uri.getScheme()) ? FileSystems.newFileSystem(uri, Collections.emptyMap()) : null) {
---
> try (FileSystem fileSystem = "jar".equals(uri.getScheme()) ? initFileSystem(uri) : null) {
/**
Copy link
Member

Choose a reason for hiding this comment

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

can we use be a better approach? i.e. running Chromium.preinstall in serverSetup
I prefer to not have a custom DriverJar for playwright

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We cannot, we need a custom DriverJar so that we make it only install chromium(line 96)

@Syer10 Syer10 requested a review from AriaMoradi January 7, 2023 21:26
@AriaMoradi AriaMoradi merged commit 4cf7512 into Suwayomi:master Jan 7, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants