JinShil / BlazorWebView

A WebKitGtk WebView for running Blazor Hybrid applications.
Apache License 2.0
66 stars 11 forks source link

Is that what you want? #1

Closed 239573049 closed 1 year ago

239573049 commented 1 year ago

https://github.com/tryphotino/photino.Blazor

Photino is a lightweight open-source framework for building native, cross-platform desktop applications with Web UI technology.

Photino.Blazor builds on Photino.NET to add Blazor capabilities.

Photino uses the OSs built-in WebKit-based browser control for Windows, macOS and Linux. Photino is the lightest cross-platform framework. Compared to Electron, a Photino app is up to 110 times smaller! And it uses far less system memory too!

JinShil commented 1 year ago

There are several problems with Photino:

239573049 commented 1 year ago

Is arm supported?

JinShil commented 1 year ago

Yes this project will run on an ARM Linux device like the Raspberry Pi.

239573049 commented 1 year ago

Thanks, I'm running it in arm

239573049 commented 1 year ago

It only supports Linux?

JinShil commented 1 year ago

Yes, it only supports Linux. If you want Windows or other platforms, you should probably consider Maui. Maui doesn't support Linux, so this project fills that void.

239573049 commented 1 year ago

However, it is difficult to maintain such a project. Have you considered supporting Win, mac and other platforms?Instead of photino

JinShil commented 1 year ago

If I need Windows, I'll typically just use WPF or WinForms and their WebView2 implementations. I have no need for Mac. See https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/?view=aspnetcore-7.0 if you need support for those platforms. This project covers Linux, which for some reason Microsoft choose to leave out.

If you are creating an applications that needs to run on Windows, Mac, Linux, and Android, you'll probably have to find a way to mix this project with the aforementioned Blazor Hybrid implementations from Microsoft.

239573049 commented 1 year ago

Although can be used, but not unified, use will be some trouble

JinShil commented 1 year ago

It can be unified by putting your application in a library and then referencing it from your Maui, Winforms, WPF, or Linux projects with the Linux project utilizing this project. I have not prepared such an implementation so it just works out of the box; that's out of scope for what I'm trying to achieve with this project. If the need arises for me, then I'll tackle that, but right now I don't have such a need.

239573049 commented 1 year ago

Ok, thank you