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

On Linux, add header feature flag to fix version regression #766

Merged
merged 4 commits into from
Nov 24, 2022
Merged

Conversation

wusyong
Copy link
Member

@wusyong wusyong commented Nov 23, 2022

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
  • I have added a convincing reason for adding this feature, if necessary

Other information

fix tauri-apps/tauri#5625

@wusyong wusyong requested a review from a team as a code owner November 23, 2022 13:06
@wusyong wusyong requested a review from lucasfernog November 23, 2022 13:07
src/lib.rs Outdated Show resolved Hide resolved
Cargo.toml Outdated
@@ -31,6 +31,7 @@ tray = [ "tao/tray" ]
devtools = [ ]
transparent = [ ]
fullscreen = [ ]
header = [ "webkit2gtk/v2_36" ]
Copy link
Member

Choose a reason for hiding this comment

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

maybe we should call it linux-headers or linux-custom-protocol-headers?

Copy link
Member

@FabianLars FabianLars Nov 23, 2022

Choose a reason for hiding this comment

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

or maybe just make version features similar to webkit2gtk, for example the "audio without user interaction" fix/feature needs 2.36 apis too

Copy link
Member Author

Choose a reason for hiding this comment

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

@FabianLars Do you have the link for audio link as reference?

Copy link
Member

Choose a reason for hiding this comment

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

The test branch still exists: dev...autoplay-0.19
i'll add a link to the docs to this comment once i find it again

Copy link
Member

Choose a reason for hiding this comment

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

Oh nevermind it was 2.30...

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll pretend I didn't see that. 🙈
@lucasfernog and I want to do some workaround in webkit2gtk and we can just check version during runtime.
After that, I'll switch flatpak and bring to v2 soon.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried to remove feature flags in webkit2gtk-rs but there are too many. I fear that will cause trouble in future updates. I would like to ask to consider this PR again.

Copy link
Member

Choose a reason for hiding this comment

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

Let's do it this way for now. if we need more version-related feature flags, we can either change it or recommend users to add the webkit2gtk dependency and define the feature they need.

@lucasfernog lucasfernog merged commit cf447f6 into dev Nov 24, 2022
@lucasfernog lucasfernog deleted the header branch November 24, 2022 11:36
@github-actions github-actions bot mentioned this pull request Nov 24, 2022
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.

[bug] Tauri not building an app on Linux Ubuntu 18.04 due to dependency mismatch
3 participants