-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAC os support #59
Comments
In WebUI 1.x (Written in C++), someone was maintaining the Mac support. Currently, WebUI 2.x is wholly rewritten in If no one creates a PR for Mac in the next week or two, then I will work on it. It's just a one-weekend day job. Please keep this open. Thank you for reporting. |
@hassandraga I'd give it a shot, but it doesn't look like the build process is documented anywhere. Any tips on where to get started? |
Hi @cowboyd, The build process is very simple, take a look on the Linux build as it should be similar to macOS. This is the how Firefox run in macOS in the code, you can search 'macOS' keyword in the code to see the other commands that still need to be implemented. I guess no C code is needed, but we need someone that have a macOS, and he know how to run web browsers from command line. In the other hand, you can simply test and share with us the commands result before & after installing the browsers, me or someone will implement it. Google Chrome Firefox Epic Browser Vivaldi Browser Brave Browser Yandex Browser Chromium Browser Someone last year tested and implemented the Google Chrome commands on macOS, but the other browser's command is just our imagination! never tested before. |
I added a build for MacOS. For some context, I'm trying to get this running with Deno and MacOS. It does appear to work, in that the Chrome window appears. However, the |
open -a "Google Chrome" worked but not with -R flag |
Thank you for the macOS support. About the issue, I re-test it in Windows using Chrome, and it seems to be working. Can you please follow those steps to share the log:
|
Indeed, To run it, WebUI will use something like that |
@cowboyd You can re-test it using the last commit. If you still have an issue with |
@gregpalaci You can re-test it using the last commit. If Chrome doesn't run on macOS, please feel free to open a new issue. |
file:///Users/carflow/Sites/newwebui/webui/examples/TypeScript/Deno/module/webui.ts:5340: Uncaught TypeError: Deno.UnsafePointer.create is not a function I guess that is built into the binary via include/webui.h ? But it does open in chrome, opens in chrome no matter what actually |
@gregpalaci, Are you trying to run a TypeScript example? if yes, please make sure you are using the latest Deno, as they just recently did major changes on pointers support using v8. I test it using Deno v1.31.3.
Yes, if your UI calls webui_script_runtime(my_window, webui.runtime.deno); // Deno
webui_script_runtime(my_window, webui.runtime.nodejs); // Nodejs
webui_script_runtime(my_window, webui.runtime.none); // Disable this feature |
@gregpalaci I just discovered that we forgot to update the Deno examples to WebUI v2.1.1. I will update it soon. Thank you for pointing this out. |
deno 1.29.2 (release, aarch64-apple-darwin) |
Starting from Deno 1.31 (Replace pointer integers with v8::External objects), which is used by |
Brave doesn't work |
The latest commit support Chrome in macOS. The support for Brave in macOS is also included but has yet to be tested. Can you please try |
open -W "/Applications/Brave.app" open -W "/Applications/Brave Browser.app" opens |
Sorry I meant this error from before I understand the -R flag now |
Great! Then we should fix this in the code. |
Please, let's continue at #75. |
Anything to try with clang or gcc, otherwise a ticket to watch support.
The text was updated successfully, but these errors were encountered: