electron is a framework, and a shitty one if I might say so, it’s cross platform but it’s not a way to package for multiple distros. You still need to package the electron program in either the native package manager (apt, pacman, etc) or a distro-agnostic one (flatpak, appimage, snap).