Re:Electron 4.0.0
by megous on Friday December 21, 2018 @11:39AM
(#18734437)
No there isn't. For example on Arch Linux, you can do pacman -S electron and share the same runtime for all your electron apps. Though, I don't use any third party ones.
[ Parent
| on HN ]
That’s interesting. Is there something specific to arch that allows this? It would definitely help to alleviate people’s concerns about electron if this could be replicated on other platforms.
Nothing specific. You can do it with electron executables downloaded from the official website.
Just run them, and drag'n'drop directories with the application's source code onto the electron window, or create desktop shortcuts that run "C:\somewhere\electron.exe C:\your\app\dir".
This would work only for packaged apps from the repos right?
Better then nothing.
I didn't find any apps in the repository. This works for apps you write yourself. You just run "electron ." in the directory with the app's source code.
You can probably unbundle thirdparty apps, becuase what electron apps are, are basically "electron" + "other code/resources". But I've never even seen someone else's electron app distribution package, so I don't know how hard/easy it would be. And I wouldn't trust it anyway, if the code is transpiled/minified/unreadable.
I run all my electron apps using a shared runtime.
Thanks for the response, then we need to ask developers to offer a download option without electron, If I remember right when I download Intellij products there is an option to download with or without a bundled Java.