Recent

Author Topic: Tauri, native and web app technology  (Read 1010 times)

lainz

  • Hero Member
  • *****
  • Posts: 4079
Tauri, native and web app technology
« on: November 13, 2022, 10:35:39 am »
Using Edge chromium runtime they mix Rust native speed with the power of a browser to display the UI.

https://betterprogramming.pub/adi%C3%B3s-electron-a-rust-powered-alternative-has-arrived-and-its-lovely-bd26262dcf1a
lainz.github.io

lainz

  • Hero Member
  • *****
  • Posts: 4079
Re: Tauri, native and web app technology
« Reply #1 on: November 13, 2022, 10:36:30 am »
I think the same can be done with FPC and the edge chromium library...
lainz.github.io

PierceNg

  • Sr. Member
  • ****
  • Posts: 292
    • SamadhiWeb
Re: Tauri, native and web app technology
« Reply #2 on: November 13, 2022, 11:38:47 am »
Using FPC / Lazarus:

lainz

  • Hero Member
  • *****
  • Posts: 4079
Re: Tauri, native and web app technology
« Reply #3 on: November 13, 2022, 04:25:18 pm »
Using FPC / Lazarus:

Thanks  :)
lainz.github.io

domasz

  • Full Member
  • ***
  • Posts: 139
Re: Tauri, native and web app technology
« Reply #4 on: November 13, 2022, 04:39:08 pm »
Using FPC / Lazarus:

Seems nice but doesn't work on the best Windows ever made- 7.

lainz

  • Hero Member
  • *****
  • Posts: 4079
Re: Tauri, native and web app technology
« Reply #5 on: November 13, 2022, 04:41:13 pm »
Using Edge chromium runtime they mix Rust native speed with the power of a browser to display the UI.

https://betterprogramming.pub/adi%C3%B3s-electron-a-rust-powered-alternative-has-arrived-and-its-lovely-bd26262dcf1a

This is said to work on Windows 7... why fpc one cant run on w7?
lainz.github.io

PierceNg

  • Sr. Member
  • ****
  • Posts: 292
    • SamadhiWeb
Re: Tauri, native and web app technology
« Reply #6 on: November 13, 2022, 05:12:46 pm »
Using FPC / Lazarus:

Seems nice but doesn't work on the best Windows ever made- 7.

fpwebview is a Pascal wrapper for webview, a C library that is itself a wrapper for WebGTK3 on Linux, Cocoa WebKit on macOS, and MS WebView2 on Windows.

I suppose WebView2 doesn't run on Win 7 because Win 7 is EOL, therefore neither webview nor fpwebview works for Win 7.

PierceNg

  • Sr. Member
  • ****
  • Posts: 292
    • SamadhiWeb
Re: Tauri, native and web app technology
« Reply #7 on: November 13, 2022, 05:21:11 pm »
Using Edge chromium runtime they mix Rust native speed with the power of a browser to display the UI.

https://betterprogramming.pub/adi%C3%B3s-electron-a-rust-powered-alternative-has-arrived-and-its-lovely-bd26262dcf1a

This is said to work on Windows 7... why fpc one cant run on w7?

According to https://github.com/tauri-apps/wry, "WebView2 provided by Microsoft Edge Chromium is used. So wry supports Windows 7, 8, 10 and 11." If this is the same WebView2 used by the webview C library, then fpwebview should work on Win 7.

I no longer have Win 7, so I can't test it myself. But I can check whether Wry's WebView2 is the same as webview's WebView2.

PierceNg

  • Sr. Member
  • ****
  • Posts: 292
    • SamadhiWeb
Re: Tauri, native and web app technology
« Reply #8 on: November 13, 2022, 05:46:39 pm »
https://learn.microsoft.com/en-us/microsoft-edge/webview2/ says that "WebView2 support for Windows 7 and Windows Server 2008 R2 have the same support timeline as Microsoft Edge."

https://learn.microsoft.com/en-us/deployedge/microsoft-edge-supported-operating-systems says that "We will continue to support Microsoft Edge on Windows 7 and on Windows Server 2008 R2 until January 15, 2023. These operating systems are out of support and Microsoft recommends you move to a supported operating system [...]"

lainz

  • Hero Member
  • *****
  • Posts: 4079
Re: Tauri, native and web app technology
« Reply #9 on: November 13, 2022, 11:02:34 pm »
So better stick with electron until no longer supported on win 7
lainz.github.io

salvadordf

  • New Member
  • *
  • Posts: 32
    • BriskBard
Re: Tauri, native and web app technology
« Reply #10 on: November 27, 2022, 03:53:54 pm »
Sorry for the late response.

I just tested WebView4Delphi with Lazarus 2.2.4 on Windows 7 (32 bits) and it works fine if you use the internal loader like this :
GlobalWebView2Loader.UseInternalLoader:= True;

The demos create the EXE in the bin64 directory and they try to load the wrong DLL on a 32 bit system. If that's your case move the EXE to bin32 and it'll work fine even without the internal loader.

Install the latest WebView2 "Evergreen Standalone Installer" or the "Fixed Version" from here :
https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section

If you use the fixed version you have to set the BrowserExecPath property like this :
GlobalWebView2Loader.BrowserExecPath := 'c:\The_Path_To_The_Fixed_Version';
« Last Edit: November 27, 2022, 06:11:44 pm by salvadordf »
Maintainer of the CEF4Delphi and WebView4Delphi projects.

domasz

  • Full Member
  • ***
  • Posts: 139
Re: Tauri, native and web app technology
« Reply #11 on: November 27, 2022, 05:18:49 pm »
Thanks @salvadordf. Will test it out :)

 

TinyPortal © 2005-2018