title: Is there a way to build different projects (different electron-builder file) for electron
body: <p>We have a white-labeled app built with electron+angular and we want to build 3 different let's say 'flavours' of the app. Except for the UI changes in Angular we have a different electron-builder file with configurations for each project. The <strong>problem</strong> is that after I build the first one the next one is twice its size (as a .exe) and when I build the third one it's even bigger. It does not matter which I build first, as this is always the case.</p>
  <p>I am building these apps with the electron-builder build command, using the --config option to pass a file with configurations.</p>
  <p>This is the electron-builder file that I am using (with PROJECT_NAME, PROJECT_APP_ID, and PROJECT_ID changing depending on the project).</p>
  <pre><code> &quot;productName&quot;: &quot;&lt;PROJECT_NAME&gt;&quot;,
   &quot;appId&quot;: &quot;&lt;PROJECT_APP_ID&gt;&quot;,
   &quot;directories&quot;: {
     &quot;output&quot;: &quot;release/&lt;PROJECT_ID&gt;&quot;
   },
   &quot;files&quot;: [
     &quot;**/*&quot;,
     &quot;!**/*.ts&quot;,
     &quot;!*.code-workspace&quot;,
     &quot;!LICENSE.md&quot;,
     &quot;!package.json&quot;,
     &quot;!package-lock.json&quot;,
     &quot;!src/&quot;,
     &quot;!e2e/&quot;,
     &quot;!hooks/&quot;,
     &quot;!angular.json&quot;,
     &quot;!_config.yml&quot;,
     &quot;!karma.conf.js&quot;,
     &quot;!tsconfig.json&quot;,
     &quot;!tslint.json&quot;
   ],
  &quot;win&quot;: {
    &quot;icon&quot;: &quot;dist/assets/icons/&lt;PROJECT_ID&gt;&quot;
   },
  &quot;mac&quot;: {
    &quot;icon&quot;: &quot;dist/assets/icons/&lt;PROJECT_ID&gt;&quot;
   },
  &quot;linux&quot;: {
    &quot;icon&quot;: &quot;dist/assets/icons/&lt;PROJECT_ID&gt;&quot;
   },
  }
  </code></pre>
  <p>Am I missing something for electron-builder? I am thinking maybe it keeps a 'cache' or something in a temporary folder and uses that to build on.
  I know the question is a bit over the place, but I don't have experience with electron-builder. Any help or suggestion is welcomed.</p>
  <p>Some details:</p>
  <ul>
  <li>I tried building it from both a windows machine and mac os.</li>
  <li>I am using electron-builder v22.9.1</li>
  <li>I have tried using different folders for the result, it still didn't work.</li>
  </ul>
  <p>[<strong>UPDATE</strong>] In the script that i use to build these projects, if i delete the directory of the build and then continue with the others, it <strong>will</strong> work.</p>