title: electron preload not working when building app (windows)
body: <p>While the preload script loads ok when developing <code>yarn start</code></p>
  <p>It does not on builds <code>yarn make</code></p>
  <pre><code>Unable to load preload script:
  </code></pre>
  <pre><code>  const mainWindow = new BrowserWindow({
      width: 1800,
      height: 1600,
      webPreferences: {
        nodeIntegration: true,
        sandbox: false,
        preload: path.join(app.getAppPath(), 'preload.js')
      },
    })
  </code></pre>
  <p>Is there any evident reason for that?</p>