'how to create production build for react electron app.?

I'm using creating react + electron weather app but I can't be creating a production build for that. I am using the electron-packager for creating build but this is not working



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source