title: electron-builder with browserWindow and preload.js. Unable to load preload script
body: <p>i`ve a problem with electron-builder and the browserWindows preload option in my main.js:</p>
  
  <pre><code>// Create the browser window.
    mainWindow = new BrowserWindow({
      x: mainWindowState.x,
      y: mainWindowState.y,
      width: mainWindowState.width,
      height: mainWindowState.height,
      minHeight: 500,
      minWidth: 1000,
      icon: path.join(__dirname, 'icon.ico'),
      frame: false,
      webPreferences: {
        preload: path.resolve(__dirname, 'preload.js'), // &lt;--- PROBLEM
        nativeWindowOpen: true,
        spellcheck: true,
        nodeIntegration: false
      }
    });
  </code></pre>
  
  <p>after starting the packaged app i get the following error:</p>
  
  <p><em>Unable to load preload script: C:\Users[...]\resources\app.asar\preload.js</em></p>
  
  <p>The preload.js is in the same directory as the main.js.</p>
  
  <p>Any ideas to solve this problem?</p>
  
  <p>with kind regards,
  kai W.</p>