Skip to content
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

Tauri #577

Open
echoless3484 opened this issue Nov 8, 2022 · 3 comments
Open

Tauri #577

echoless3484 opened this issue Nov 8, 2022 · 3 comments

Comments

@echoless3484
Copy link

Hey, Electron isn't really the best thing to use, but a lot of people don't know how to use others so this is one of their only options, might I recommend adding a Tauri or Arc option for compiling in the Packager?

This would be absolutely amazing to see, as it can let you do so much more than Electron, including:
Self Updating
Self Bundling (Installer)
Way better Security
Way smaller File Size
Easy to manage Plugins

@echoless3484
Copy link
Author

Tauri will also allow way less memory usage.

@GarboMuffin GarboMuffin changed the title Huge suggestion for Compiling/Packaging Tauri Nov 8, 2022
@GarboMuffin
Copy link
Member

GarboMuffin commented Nov 8, 2022

I'm still not entirely convinced that Tauri is ready for production use, but yes this is something to consider working on eventually. The file size benefit is very real and very significant.

Electron does still present some advantages:

  • the project will work more consistently across devices and operating systems
  • it's still easy to modify the resulting files (electron-main.js)
  • on Linux, WebKit (used by Tauri) is just not very good at running Scratch projects

and on macOS we already have a WKWebView option which is similar to what Tauri would do

Self Updating
Self Bundling (Installer)

are possible with electron, we just don't do them because they're not easy to do properly, especially in a web app. Tauri won't change that.

Easy to manage Plugins

You probably won't be able to use custom plugins as we ship pre-built binaries

Way better Security

The way we use electron is very secure (nodeIntegration: false, contextIsolation: true, sandbox: true, no IPC at all)

less memory usage

Tauri memory usage isn't going to be as much less than Electron as their benchmarks would imply as the benchmarks run on Linux so they're comparing Chrome vs WebKit memory usage. Most users are on Windows where Tauri uses the same engine as Electron. It'll probably be a less, but probably not by a whole lot (?).

@GarboMuffin
Copy link
Member

Another Tauri advantage is that generating a single standalone .EXE may be more viable without very bad performance because the app won't have to unpack all of Chromium each time it starts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants