How to use the electron-installer-common.getTrashDepends function in electron-installer-common

To help you get started, we’ve selected a few electron-installer-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github electron-userland / electron-installer-debian / src / dependencies.js View on Github external
function trashRequiresAsBoolean (electronVersion, dependencyMap) {
  return [common.getTrashDepends(electronVersion, dependencyMap).join(' | ')]
}
github electron-userland / electron-installer-redhat / src / dependencies.js View on Github external
function trashRequiresAsBoolean (electronVersion, dependencyMap) {
  const trashDepends = common.getTrashDepends(electronVersion, dependencyMap)
  if (trashDepends.length === 1) {
    return [trashDepends[0]]
  } else {
    return [`(${trashDepends.join(' or ')})`]
  }
}