I installed the Electron Redhat (rpm) Installer module because I want to compile it in RPM, so I already put the code in the package.json as in the Github page of this module. But at the time of placing "npm run rpm64" I get this:
Error: Error executing command (1): rpmbuild -bb /tmp/electron-11811-14445-jo2hue.ifa6c/WhatsApp-Linux_1.0.0_x86_64/SPECS/WhatsApp-Linux.spec --target x86_64 error: the License field must be present in the package: (main package)
I do not know why this error happens and I investigated everywhere to see some solution for this but I did not find anything. I only saw in other languages that nodejs use this error but not in Electron.