title: Electron app file association - Custom icon not appearing
body: <p>I'm trying to get the file icon for my electron app to work properly on mac.</p>
  
  <p>My package.json has:</p>
  
  <pre><code>"fileAssociations": {
    "ext": [ "x" ],
    "name": "X",
    "description": "An x file",
    "icon": "xFile.icns",
    "role": "Editor",
    "isPackage": false
  },
  </code></pre>
  
  <p>And I also have in package.json:</p>
  
  <p><code>"extend-info": "Info.plist"</code></p>
  
  <p>which contains:</p>
  
  <pre><code>...&lt;plist version="1.0"&gt;
  &lt;dict&gt;
    &lt;key&gt;CFBundleDocumentTypes&lt;/key&gt;
    &lt;array&gt;
      &lt;dict&gt;
        &lt;key&gt;CFBundleTypeExtensions&lt;/key&gt;
        &lt;array&gt;
          &lt;string&gt;sql&lt;/string&gt;
        &lt;/array&gt;
        &lt;key&gt;CFBundleTypeIconFile&lt;/key&gt;
        &lt;string&gt;xFile.icns&lt;/string&gt;
        &lt;key&gt;CFBundleTypeName&lt;/key&gt;
        &lt;string&gt;X File&lt;/string&gt;
        &lt;key&gt;CFBundleTypeOSTypes&lt;/key&gt;
        &lt;array&gt;
          &lt;string&gt;X&lt;/string&gt;
        &lt;/array&gt;
        &lt;key&gt;CFBundleTypeRole&lt;/key&gt;
        &lt;string&gt;Editor&lt;/string&gt;
        &lt;key&gt;NSDocumentClass&lt;/key&gt;
        &lt;string&gt;SPDocumentController&lt;/string&gt;
      &lt;/dict&gt;
    &lt;/array&gt;
    &lt;key&gt;CFBundleURLTypes&lt;/key&gt;
    &lt;array&gt;
    &lt;/array&gt;
  &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>
  
  <p>After I package it and move it to my Applications folder, I check the contents of the app and Info.plist wasn't extended with the info above.</p>
  
  <p>Double-clicking to launch an .x file works though, just no icon replacement.</p>
  
  <p>Can anyone confirm if my paths for the .icns file and .plist file is correct? Is it relative to the build folder or something else?</p>
  
  <p>My file structure is according to the guidelines:</p>
  
  <pre><code>app folder:
   &gt; package.json, main.js, etc.
   &gt; build
     &gt; icons &amp; Info.plist
  </code></pre>