Skip to content
Permalink
Browse files

feat(maker): add the deb maker for the linux target

Requires the app's "description" to be non-blank.
  • Loading branch information
malept authored and MarshallOfSound committed Dec 4, 2016
1 parent b3b616a commit 5c5ce67a79cad7720f1545aead634fb18ab4a75d
Showing with 21 additions and 1 deletion.
  1. +1 −0 package.json
  2. +19 −0 src/makers/linux/deb.js
  3. +1 −1 tmpl/package.json
@@ -58,6 +58,7 @@
"colors": "^1.1.2",
"commander": "^2.9.0",
"debug": "^2.3.3",
"electron-installer-debian": "^0.4.0",
"electron-installer-dmg": "^0.1.2",
"electron-packager": "^8.3.0",
"electron-winstaller": "^2.5.0",
@@ -0,0 +1,19 @@
import installer from 'electron-installer-debian';
import path from 'path';
import pify from 'pify';

import { ensureFile } from '../../util/ensure-output';

export default async (dir, appName, forgeConfig) => {
const outPath = path.resolve(dir, '../make/debian');

await ensureFile(outPath);
const debianDefaults = {
arch: process.arch, // DOES NOT WORK WITH ARM
dest: outPath,
src: dir,
};
const debianConfig = Object.assign({}, forgeConfig.electronInstallerDebian, debianDefaults);

await pify(installer)(debianConfig);
};
@@ -2,7 +2,7 @@
"name": "",
"productName": "",
"version": "1.0.0",
"description": "",
"description": "My Electron application description",
"main": "src/index.js",
"scripts": {
"start": "electron-forge start"

0 comments on commit 5c5ce67

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