How to deploy Ionic cordova app on windows

How can I deploy a ionic5 angular - cordova application with a windows file .exe?

The Ionic documentation say to use Electron without any kind of explanation:
https://ionicframework.com/docs/deployment/desktop-app

I followed some tutorial like theese:

https://devdactic.com/ionic-desktop-electron/
https://www.9lessons.info/2018/10/ionic-electron-desktop-app.html

but I was unable to get the project working.
I don’t understand if it is possible to generate an .exe file from an ionic-cordova project without taking it apart and having to rewrite a good part of it?

regards,
Maurizio