Skip to content
Permalink
Browse files

feat(installer): add rpm installer

  • Loading branch information
malept authored and MarshallOfSound committed Dec 31, 2016
1 parent 1c2bfd8 commit f8f9baa5843f6ae0744021c208432e6d5e94a53a
Showing with 15 additions and 2 deletions.
  1. +5 −2 src/electron-forge-install.js
  2. +10 −0 src/installers/linux/rpm.js
@@ -17,6 +17,7 @@ import './util/terminate';
import darwinDMGInstaller from './installers/darwin/dmg';
import darwinZipInstaller from './installers/darwin/zip';
import linuxDebInstaller from './installers/linux/deb';
import linuxRPMInstaller from './installers/linux/rpm';

const d = debug('electron-forge:lint');

@@ -136,8 +137,10 @@ const main = async () => {
},
linux: {
'.deb': linuxDebInstaller,
'.rpm': async () => {},
'.flatpak': async () => {},
'.rpm': linuxRPMInstaller,
'.flatpak': async () => {
console.error('Not yet supported');
},
},
};

@@ -0,0 +1,10 @@
import pify from 'pify';
import sudo from 'sudo-prompt';

import linuxInstaller from '../../util/linux-installer';

export default async (filePath) => {
linuxInstaller('RPM', 'dnf', pify(sudo.exec)(`dnf --assumeyes --nogpgcheck install ${filePath}`, {
name: 'Electron Forge',
}));
};

0 comments on commit f8f9baa

Please sign in to comment.
You can’t perform that action at this time.