Electron-builder: Add ability to hide dock icon immediately

Created on 11 Apr 2017  路  3Comments  路  Source: electron-userland/electron-builder

Electron has a native method that allows you to hide the dock icon, but it will pop up at the startup anyway and only hide later. In turn, electron-builder should support this.

mac question

Most helpful comment

Please use https://github.com/electron-userland/electron-builder/wiki/Options#MacOptions-extendInfo to add any custom Info.plist entries.
e.g. set

"mac": {
  "extendInfo": {
    "LSUIElement": 1
  }
}

All 3 comments

Please use https://github.com/electron-userland/electron-builder/wiki/Options#MacOptions-extendInfo to add any custom Info.plist entries.
e.g. set

"mac": {
  "extendInfo": {
    "LSUIElement": 1
  }
}

Sweet, thanks!

Updated link for the extendInfo key: https://www.electron.build/configuration/mac.html#MacConfiguration-extendInfo

Was this page helpful?
0 / 5 - 0 ratings