Build once, run where the runtime in available.
To be fair, that's true of everything. We only take for granted that some runtimes are more common than others.
The only reason the web is a "universal" runtime is that browser vendors ship to every conceivable platform and more or less agree on standards.
Electron is heavier and even more memory hungry.
Build once, run where the runtime in available.