Skip to content
Permalink
Browse files

feat(installer): add deb installer

  • Loading branch information
malept authored and MarshallOfSound committed Dec 30, 2016
1 parent 1489e64 commit fb217c743bd76713bf49f3d840af5a8fdd162951
Showing with 10 additions and 1 deletion.
  1. +2 −1 src/electron-forge-install.js
  2. +8 −0 src/installers/linux/deb.js
@@ -16,6 +16,7 @@ import './util/terminate';

import darwinDMGInstaller from './installers/darwin/dmg';
import darwinZipInstaller from './installers/darwin/zip';
import linuxDebInstaller from './installers/linux/deb';

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

@@ -134,7 +135,7 @@ const main = async () => {
'.dmg': darwinDMGInstaller,
},
linux: {
'.deb': async () => {},
'.deb': linuxDebInstaller,
'.rpm': async () => {},
'.flatpak': async () => {},
},
@@ -0,0 +1,8 @@
import pify from 'pify';
import sudo from 'sudo-prompt';

export default async (filePath) => {
await pify(sudo.exec)(`gdebi -n ${filePath}`, {
name: 'Electron Forge',
});
};

0 comments on commit fb217c7

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