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

Can I configure the webview kernel in the application at packaging time? Used to help ordinary people who can't install webview. Avoid complex operations #3577

Open
catfives opened this issue Jun 28, 2024 · 3 comments
Labels
Enhancement New feature or request

Comments

@catfives
Copy link

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

Can I configure the webview kernel in the application at packaging time? Used to help ordinary people who can't install webview. Avoid complex operations

Describe alternatives you've considered

No response

Additional context

No response

@catfives catfives added the Enhancement New feature or request label Jun 28, 2024
@atterpac
Copy link
Contributor

Mac - preinstalled because of Safari

Windows - Can configure via what webview is used in options, would require you to write a certain version to the desired location and load it here
https://wails.io/docs/reference/options#webviewbrowserpath

Linux - Only if you package as a deb or app image where you allow install steps to downloads deps

@biuaxia
Copy link
Contributor

biuaxia commented Jul 18, 2024

I also want to know the specific code implementation. Can you give a corresponding example?

@atterpac
Copy link
Contributor

atterpac commented Jul 18, 2024

The docs show how to get a specific version of a Webview runtime for windows, you'd write that to the clients device and whatever path you set is what you set as the WebviewBrowserPath in windows options.

You will need to //go:embed the version you want into your application and do a os.WriteFile with permission 0755 to allow it to be executed

Wherever you write the file should be your WebviewBrowserPath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants