Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread HOWTO create app.exe file fom EWB js/html running in WebView2 runtime? 🤔
Fri, Apr 9 2021 5:47 PMPermanent Link

Trinione

🤔 How to use Delphi to create a single exe file from the generated EWB js and html files, with ability to :

(1) run in MS WebView2 runtime?
{2} Run in embedded OS browssr (Edge in Windows)

........................................................
PascalNetwork.com
pascal - the language we love
Fri, Apr 9 2021 8:04 PMPermanent Link

erickengelke

Trinione wrote:

>🤔 How to use Delphi to create a single exe file from the generated EWB js and html files, with ability to :
>
>(1) run in MS WebView2 runtime?
>{2} Run in embedded OS browssr (Edge in Windows)

The only way I know how to do this is to create a PWA (progressive web app).  EWB can generate one, but it's not intiutiitve.  You need to hand edit the HTML, add a manifest, add a service worker, etc. so it's not currently for the faint of heart.  Elevate will probably add the capability sometime, but right now it's too much work to describe and frustrating to debug due to caching issues.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Mon, Apr 12 2021 10:32 AMPermanent Link

Matthew Jones

Trinione wrote:

> 🤔 How to use Delphi to create a single exe file from the generated EWB js and html files, with ability to :
>
> (1) run in MS WebView2 runtime?
> {2} Run in embedded OS browssr (Edge in Windows)

I did something like that a few years ago using the Chromium engine as the browser component. Worked quite well. It's a bit too complicated to say "how" in detail, but you just hook the required calls for the browser and then tell it to load index.html. The hooks then fire to say "we need index.html" and instead of going over the web, you return the static data for the page. Then it will ask for the javascript and other files, and you again return the required info. Not hard if you have a decent logging solution (like Raize Codesite - is that still available?).


--

Matthew Jones
Image