webui-dev / nim-webui

Use any web browser as GUI, with Nim in the backend and HTML5 in the frontend.
https://webui.me
MIT License
130 stars 9 forks source link

Mac Build #9

Closed konsumer closed 1 year ago

konsumer commented 1 year ago

Related to #8 and #7

This doesn't totally fix it, but it gets it to build.

After this, it will build without error, but it still pops up a blank window, which might be related to API changes (see #7)

So, I think we can merge that PR and add these minor changes (maybe only switch to macosx) and it should work better, everywhere.

konsumer commented 1 year ago

I also tested on a x86_64 mac. Same issue with blank window/no wait, but it's building ok there, too.

konsumer commented 1 year ago

I tried forking @hassandraga's branch and making the small changes, and it built, but still had the same issue, so there may be more to it.

neroist commented 1 year ago

Thank you for this! I don't have a mac so I haven't been able to test webui on macos.

konsumer commented 1 year ago

Looking at upstream C lib, it has same problem with Macs (wait seems to be returning immediately) so I am going to try to fix things there, too.