webui-dev / bun-webui

Use any web browser as GUI, with Bun in the backend and HTML5 in the frontend.
MIT License
6 stars 1 forks source link

Dev #2

Open jinzhongjia opened 5 months ago

jinzhongjia commented 5 months ago

Now, we can do this: image However, I haven't written the actual code to introduce a dynamic link library, so it's direct dlopen for now

jinzhongjia commented 5 months ago

api adaption is ok, but I need to write examples and import dynamic link library

jinzhongjia commented 5 months ago

The current bunjs embedded file function is not perfect, and there seems to be some strange problems. and the dlopen has an issue: https://github.com/oven-sh/bun/issues/6517

So I decided to stop bunjs adaptation for the time being (the possible introduction of dynamic libraries failed due to this issue)

jinzhongjia commented 3 months ago

With the release of bun1.1, it seems possible to continue this

jinzhongjia commented 3 months ago

At present, the dynamic link library of bun is loaded normally, but when writing a callback function, an inexplicable stack overflow occurs.