Jesus there are a lot of bad answers in this thread.
Electron is just a wrapper around html/css/js that have access to the filesystem via some specialized libraries. As far as future compatibility goes, the answer is that it’s highly likely for the html/css/front end js side, but the file system access libs have a higher chance of breaking as the years go by. It’d likely be fairly easy to patch to work in the future, moreso than say, a native c++ app.
As an example: most sites from 1980-1990 still run in any browser (with the exception of marquee and blink tags), but few source packages from that era will compile on modern os’s.