title: electron-builder create .dmg on windows
body: <p>I want to create my electron app installer for windows, mac and linux however currectly it's only creating .exe file:</p>
  <p><a href="https://i.stack.imgur.com/WbKom.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WbKom.png" alt="enter image description here" /></a></p>
  <p>and some win-unpacked directory and some other files which I don't even know why I need because .exe file is installing my app and creating desktop shortcut and I don't even need those extra files to get app to work.</p>
  <p>In other word - when I just copy .exe and run on other machine then it's succesfully installing therefore why I even need those other files?</p>
  <hr>
  <p>So it's working correctly with windows but it does not create any files that I could run on macOS and linux like .dmg.</p>
  <p>This is my package.json</p>
  <pre><code>{
    &quot;name&quot;: &quot;screenrecorder&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;Electron application to record screen&quot;,
    &quot;main&quot;: &quot;./src/js/main/index.js&quot;,
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;electron ./src/js/main/index.js&quot;,
      &quot;compile:sass&quot;: &quot;node-sass src/style/scss/main.scss src/style/css/output.css -w&quot;,
      &quot;build&quot;: &quot;electron-builder&quot;
    },
    &quot;repository&quot;: {
      &quot;type&quot;: &quot;git&quot;,
      &quot;url&quot;: &quot;https://github.com/d0peCode/screenRecorder&quot;
    },
    &quot;build&quot;: {
      &quot;appId&quot;: &quot;screenrecorder&quot;,
      &quot;mac&quot;: {
        &quot;category&quot;: &quot;your.app.category.type&quot;,
        &quot;target&quot;: &quot;dmg&quot;
      }
    },
    &quot;author&quot;: &quot;Borys Tyminski&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;homepage&quot;: &quot;https://github.com/d0peCode/screenRecorder#readme&quot;,
    &quot;dependencies&quot;: {
      &quot;angular&quot;: &quot;^1.6.5&quot;,
      &quot;angular-route&quot;: &quot;^1.6.5&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;electron&quot;: &quot;^6.0.2&quot;,
      &quot;electron-builder&quot;: &quot;^21.2.0&quot;,
      &quot;node-sass&quot;: &quot;^4.9.2&quot;
    }
  }
  </code></pre>
  <p>And this is my log from terminal after running <code>npm run build</code></p>
  <blockquote>
  <p>C:\Users\Borys\Documents\work\screenRecorder\desktop&gt;npm run build</p>
  <p>screenrecorder@1.0.0 build &gt;C:\Users\Borys\Documents\work\screenRecorder\desktop</p>
  <blockquote>
  <p>electron-builder</p>
  </blockquote>
  <p>• electron-builder  version=21.2.0 os=10.0.18362</p>
  <p>• loaded configuration  file=package.json (&quot;build&quot; field)</p>
  <p>• writing effective config  file=dist\builder-effective-config.yaml</p>
  <p>• packaging       platform=win32 arch=x64 electron=6.0.6 appOutDir=dist\win-unpacked</p>
  <p>• default Electron icon is used  reason=application icon is not set</p>
  <p>• building        target=nsis file=dist\screenrecorder Setup 1.0.0.exe archs=x64 oneClick=true perMachine=false</p>
  <p>• building block map  blockMapFile=dist\screenrecorder Setup 1.0.0.exe.blockmap</p>
  </blockquote>
  <p>Why it doesn't create macOS installer? And what are steps to make it do so?</p>