-
Notifications
You must be signed in to change notification settings - Fork 6
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
Proposal to use tauri instead of electron #36
Comments
Thanks for your interest in Dithermark and taking time to look into this. I have taken a cursory look at Tauri, and most likely I will not be going in this direction, however I also plan to move away from Electron as well. To better understand the reasons for this, here is some background. A while back I got some requests for the ability to run Dithermark offline. I created an Electron version, not due to any experience or affinity with Electron, but because that seemed the default way to create an offline version of a web app. However the following problems soon became apparent, in both the dev and user experience.
When looking at Tauri, while it might have better performance than Electron, it mostly has those same problems.
I got an idea for a different direction when hearing how a colleague was distributing a fork of Dithermark for offline use as a single HTML file to bypass these problems. The problem with that is that when an HTML file is opened locally instead of via a web server, some features (such as web workers), are not available. It got me thinking of distributing the compiled files with a web server to get around these problems. My plan for this is:
While it is less polished than distributing an Electron or Tauri app, it serves the purpose of allowing users to use Dithermark offline. It also gets rid of code signing warnings everywhere except Windows, is guaranteed to work the same as the online version, allows support on more platforms, requires the least user resources, and offers the best development experience (since only Windows binaries need to be created, and can be done from any platform). |
It makes a lot of sense. Thank you for the explanation. Have you considered setting Dithermark up as a PWA? This would allow offline usage with no change to your code using most modern browsers. Once again, thanks for the work! |
A PWA or something like that would be ideal, however as it stands now PWAs only work on desktop with Chrome. And to show how little awareness there is for PWAs, neither of us were aware until this moment that Dithermark already works as a PWA. I just tried it in Chrome and it is installable, and everything works, even when offline. So any changes I would make shouldn't change that, and people that want to install it as a PWA should be able to continue to do so. |
First of all, thank you for your work and for making it free to use.
Tauri uses the OS builtin webview to produce bundled cross-platform apps, which produces much leaner binaries. It took me less than 5 minutes to build a test tauri app for macOS and the uncompressed app size is only 9.1MB. The memory usage is also significantly lower, at under 300MB under heavy use.
Would you consider implementing a build script using tauri?
The text was updated successfully, but these errors were encountered: