Effectively any JRE newer than JRE8 needs a special copy, because of Oracle's licensing. Jetbrains packages their own JRE, for instance, though you can opt into using the system JRE.
Electron also doesn't need to be installed multiple times, on my Manjaro there's a system package for every electron version that many electron applications link against.
Electron doesn't need to be installed everytime if WebView is used for which there's wails (go) and tauri (rust) and the app wouldn't even be in MBs but few hundred KBs if optimized for.
Package size advantage of Wails, Tauri and likes; is it worth giving up Chromium's integrity across platforms, thus dealing with Safari/WKWebView and WebKitGTK anomalies?