How to use the electron-installer-common.getDepends 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-redhat / src / dependencies.js View on Github external
forElectron: async function dependenciesForElectron (electronVersion, logger) {
    const requires = common.getDepends(electronVersion, dependencyMap)
    if (await module.exports.rpmSupportsBooleanDependencies(logger)) {
      const trashRequires = trashRequiresAsBoolean(electronVersion, dependencyMap)
      return { requires: requires.concat(trashRequires) }
    } else {
      throw new Error('Please upgrade to RPM 4.13 or above, which supports boolean dependencies.\nThis is used to express Electron dependencies for a wide variety of RPM-using distributions.')
    }
  },
  rpmSupportsBooleanDependencies,
github electron-userland / electron-installer-debian / src / dependencies.js View on Github external
forElectron: function dependenciesForElectron (electronVersion) {
    return {
      depends: common.getDepends(electronVersion, dependencyMap)
        .concat(trashRequiresAsBoolean(electronVersion, dependencyMap)),
      recommends: [
        'pulseaudio | libasound2'
      ],
      suggests: [
        'gir1.2-gnomekeyring-1.0',
        'libgnome-keyring0',
        'lsb-release'
      ],
      enhances: [
      ],
      preDepends: [
      ]
    }
  }
}