We're using electron-packager to bundle up and distribute the front-end of our web application. We need to be able to pass in the host
and port
of the server to the electron front-end for connecting. When we launch via electron main.js --host blah --port 8080
it works. Once it's packaged, we run via ./MyApp --host blah --port 8080
and it doesn't work. This is bad because we don't want customers to need to install electron/npm itself. Also worth noting is that this happens whether we package the app in an asar
archive or not.
Any ideas on things we could try, or if we're trying to go about this the wrong way?