Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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,
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: [
]
}
}
}