-
Notifications
You must be signed in to change notification settings - Fork 8
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
Think about offering an offline version and/or multi-platform desktop apps? #6
Comments
Another solution I just discovered is webcatalog.app, and apparently I can set-up a custom app using https://betterocaml.ml/editor/ I'll add screenshots or a GIF showing this, just for demonstration. |
Creating the WebCatalog webapp (using a PNG logo from, that I manually edited using GIMP to put it in square format): |
A similar or follow-up discussion would be about packaging the BetterOCaml website for a tiny IDE on Android/iOS. I've been using OCaml Toplevel for Android since 2011, but it's using OCaml v3.12 and compiling natively to Android is painful, bundling your online javascript editor would be a much quicker solution. Note that I haven't been able to use https://betterocaml.ml/editor/ on my (not so recent) smartphone. |
Hi, When i started this project, my goal was to build with electron, but the main issue iI have with electron is the size of the application at the end. When I tested it, it worked well but with a final size of 200Mb where the entire project fit in 5Mb zipped. Maybe I will create a new branch for electron setup, because there is some feature I want to implement ( for exemple the file management with recent files , ...) Webcatalog.app is nice but if I understand correctly each customer must install the software ? Moreover, the website can be used offline, because all the file are kept in browser cache. Finally for the mobile version, I need to work on CSS but when I tested it on my phone it worked pretty good (Safari , iOS 14) |
Hi,
|
Hi, I created a new branch named electron with the basic setup : I tested on windows and it work ! (80 Mb zip and 160 with the installer) It's a very good idea for the cache, I will work on this next week. For WebCatalog, you could add a section to the Readme if you want 😃 |
Just FYI, I contacted the developer of OCaml Toplevel for Android, which still works but wasn't updated since 2011! |
Hi there! I found these references: |
Also, just for your information, I found yesterday JSCPP which is a project quite similar to BetterOCaml... except that it's for the C language! interpreted in javascript! how awesome is that! |
I kept looking for more resources about web workers, and this article https://levelup.gitconnected.com/build-a-pwa-using-only-vanilla-javascript-bdf1eee6f37a seems to be pretty clear. (it behind shitty medium, and I read too much this week so I must use Tor just to read it...). The code is there https://github.com/S-ayanide/MixCentro. |
So I guess with the two solutions of using WebCatalog.app or installing it as a "progressive web app" using Chrome or Chromium, this can be closed (for now at least). |
Hello there,
Using Electron and recent technologies, it shouldn't be too hard to bundle this web app as a desktop app!
It could be multi-platform, as it's easy to use electron-packager or electron.build to produce zip files for different platforms.
(There is no need to be on such platforms, see for instance this project where I published apps for all platforms, built on Ubuntu.)
The advantage is that it's then possible to install it as a local desktop app, which can be used without Internet.
What do you think?
I could try to play again with electron.build, if you think this is interesting.)
Thanks in advance! -- @Naereen
The text was updated successfully, but these errors were encountered: