-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to build? #84
Comments
Check out the packaging section under Glimmer DSL for LibUI: LibUI is a low-level C-style binding. It is not meant to be used directly. Glimmer DSL for LibUI enables using this LibUI binding the Ruby way with about half the code or less using a Ruby DSL + Data-Binding support. OCRAN is the most up-to-date library for packaging on Windows: Mac and Linux packaging are not officially supported yet. They're in the future plan of the project, but lower in priority compared to other things. That said, one approach that could be attempted is WASI packaging and then WASI to Native package conversion. You can read about that in the packaging instructions I shared above. If you get it working, please contribute a README update via a PR about it. |
Hi Joseph Schito If you mean "compile libui source code," you generally do not need to build it, because each gem contains binary files for each OS. However, this does not always work. If you find any problems, please report them to us. As for building an executable application, Andy answered. I always use Glimmer DSL when I create personal tools, but there may be opportunities to use LibUI directly in cases where I want to reduce dependencies as much as possible. (For example, when using it as part of a library.) |
You can, on windows, just install the libui gem. The same code you write on Linux works on If you mean for re-distribution and packaging for other folks, you could try to use the |
Thanks everybody! Perhaps I have found a solution for MacOS, I used Traveling Ruby and Platypus together (I'm writing an article about it). Let me know what you think about it! 🙏 The application: |
Thanks for sharing the article. It’s very interesting. I’ll have to spend some time trying out the instructions, hopefully sometime tomorrow. |
Sorry for the delay. I finally got a chance to test the instructions, and they worked with a Glimmer DSL for LibUI desktop application! Thank you @josephschito The next step would be to automate all of the work under a If you're up for it, you can contribute it to this file: And, delegate work to this file: Then submit a Pull Request to Glimmer DSL for LibUI so that people can package Mac apps by simply running:
That's what's currently already 100% supported by Glimmer DSL for SWT, albeit with JRuby: It would be great to have that automatic packaging support for the Mac under standard Ruby (MRI/CRuby) too. |
I'm not familiar with Platypus, so I'll give it a try next time I have time. |
I'll take a look on that definitively! |
I didn't get if there is any way to build it to be a macos or windows program...
The text was updated successfully, but these errors were encountered: