Skip to content
Permalink
Browse files

fix(maker): fix debian and redhat maker path calculation

  • Loading branch information
MarshallOfSound committed Jun 16, 2017
1 parent 63d0f23 commit c2dca2114770f6333b765505919bf8a2b0a70e3f
Showing with 6 additions and 4 deletions.
  1. +3 −2 src/makers/linux/deb.js
  2. +3 −2 src/makers/linux/rpm.js
@@ -22,8 +22,9 @@ export default async ({ dir, targetArch, forgeConfig, packageJSON }) => {

const arch = debianArch(targetArch);
const userConfig = configFn(forgeConfig.electronInstallerDebian, targetArch);
const versionedName = `${packageJSON.name}_${packageJSON.version}_${arch}`;
const outPath = path.resolve(dir, '../make', `${userConfig.name || versionedName}.deb`);
userConfig.options = userConfig.options || {};
const versionedName = `${userConfig.options.name || packageJSON.name}_${packageJSON.version}_${arch}`;
const outPath = path.resolve(dir, '../make', `${versionedName}.deb`);

await ensureFile(outPath);
const debianDefaults = {
@@ -22,8 +22,9 @@ export default async ({ dir, targetArch, forgeConfig, packageJSON }) => {

const arch = rpmArch(targetArch);
const userConfig = configFn(forgeConfig.electronInstallerRedhat, targetArch);
const versionedName = `${packageJSON.name}-${packageJSON.version}.${arch}`;
const outPath = path.resolve(dir, '../make', `${userConfig.name || versionedName}.rpm`);
userConfig.options = userConfig.options || {};
const versionedName = `${userConfig.options.name || packageJSON.name}-${packageJSON.version}.${arch}`;
const outPath = path.resolve(dir, '../make', `${versionedName}.rpm`);

await ensureFile(outPath);
const rpmDefaults = {

0 comments on commit c2dca21

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