Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
Make installer generation work
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Feb 8, 2018
1 parent 1eb03d4 commit af1e848
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/build/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const createDMG = (outputDir, appPath, config) => new Promise(resolve => {
}
]

createDMG({
generateDMG({
name,
appPath,
dmgPath,
Expand All @@ -45,10 +45,10 @@ const createDMG = (outputDir, appPath, config) => new Promise(resolve => {
})
})

const createEXE = async (outputDirectory, appDirectory, config) => {
const createEXE = (outputDirectory, appDirectory, config) => {
const { name: title, slug, version } = config

await generateEXE({
return generateEXE({
appDirectory,
outputDirectory,
iconUrl: join(process.cwd(), 'windows.ico'),
Expand All @@ -65,10 +65,8 @@ module.exports = async (outputDir, appPath, config) => {
spinner.create('Generating installation wizard')

if (process.platform === 'darwin') {
await createDMG(outputDir, appPath, config)
return
return createDMG(outputDir, appPath, config)
}

await createEXE(outputDir, appPath, config)
spinner.clear('l')
return createEXE(outputDir, appPath, config)
}

0 comments on commit af1e848

Please sign in to comment.