Skip to content

Commit

Permalink
fix(maker): fix debian and redhat maker path calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Jun 16, 2017
1 parent 63d0f23 commit c2dca21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/makers/linux/deb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
5 changes: 3 additions & 2 deletions src/makers/linux/rpm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit c2dca21

Please sign in to comment.