Skip to content

Commit a1b2b0e

Browse files
committed
fix: Version 6.3.5 makes build pass even when it fails
Closes #721
1 parent 63ee4cf commit a1b2b0e

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

src/targets/dmg.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,20 @@ export class DmgTarget extends Target {
3333
async build(appOutDir: string) {
3434
const appInfo = this.packager.appInfo
3535
const artifactPath = path.join(appOutDir, `${appInfo.productFilename}-${appInfo.version}.dmg`)
36-
await new BluebirdPromise<any>(async(resolve, reject) => {
37-
log("Creating DMG")
38-
const dmgOptions = {
39-
target: artifactPath,
40-
basepath: this.packager.projectDir,
41-
specification: await this.computeDmgOptions(appOutDir),
42-
}
43-
44-
if (debug.enabled) {
45-
debug(`appdmg: ${JSON.stringify(dmgOptions, <any>null, 2)}`)
46-
}
36+
log("Creating DMG")
37+
const dmgOptions = {
38+
target: artifactPath,
39+
basepath: this.packager.projectDir,
40+
specification: await this.computeDmgOptions(appOutDir),
41+
}
42+
if (debug.enabled) {
43+
debug(`appdmg: ${JSON.stringify(dmgOptions, <any>null, 2)}`)
44+
}
4745

48-
const emitter = require("appdmg")(dmgOptions)
46+
const emitter = require("appdmg")(dmgOptions)
47+
await new BluebirdPromise((resolve, reject) => {
4948
emitter.on("error", reject)
50-
emitter.on("finish", () => resolve())
49+
emitter.on("finish", resolve)
5150
if (debug.enabled) {
5251
emitter.on("progress", (info: any) => {
5352
if (info.type === "step-begin") {

0 commit comments

Comments
 (0)