title: Electron packaging apps issues- license and node.dll
body: <p>I created an electron application in node.js that runs well on my mac. But I tried to package it using</p>
  
  <pre><code>electron-package . --all
  </code></pre>
  
  <p>as shown here: <a href="https://github.com/electron-userland/electron-packager/" rel="nofollow">https://github.com/electron-userland/electron-packager/</a></p>
  
  <p>That runs successfully and makes apps for linux, mac, and windows. </p>
  
  <p>Problems I'm running into:</p>
  
  <ol>
  <li><p>The icon for the application is still the default electron one. I changed mainWindow to be this:</p>
  
  <p><code>mainWindow = new BrowserWindow({
      width: 800,
      height: 600,
      icon: file://${__dirname}/assets/img/mylogo.png
    })</code></p></li>
  </ol>
  
  <p>EDIT: Resolved this issue by running
      <code>electron-packager . --platform=mas --arch=x64 --icon=assets/img/app.icns --overwrite</code></p>
  
  <p>(with tick marks around the icon path). What else am I missing to change the app icon?</p>
  
  <ol start="2">
  <li><p>On mac, when a user tries to open my app, they can't install because of this message: </p>
  
  <p><code>"AppName" can't be opened because it is from an unidentified developer.</code></p></li>
  </ol>
  
  <p>This is odd because there is a LICENSE file in the packaged .app folder that is made by Github. What's missing here?</p>
  
  <ol start="3">
  <li><p>On windows, when a user tries to open the app, they get this error:</p>
  
  <p><code>node.dll is missing from this computer</code></p></li>
  </ol>
  
  <p>This seems off because the user shouldn't have to install extra things just to get my application to work. Did I screw something else up here too?</p>
  
  <p>Thanks.</p>