Packaging Electron Apps with external files
<p>In my Electron application, I have a button in which a user can click which triggers node's child_process and runs an external .jar file in the background:</p>

<pre><code>exec(`java -jar encoder.jar -i filein -o fileout`, function(err, stdout, stderr)
</code></pre>

<p>The actual .jar file is located within the root directory of the project. When running in development mode(unpackaged) this works great. However, when I package it and run the application, I get the following error:</p>

<pre><code>There was an error: Error: Unable to access jarfile encoder.jar
</code></pre>

<p>Am I to assume that everything in the project folder gets packaged when using electron-packager? If not, what am I missing?</p>