@@ -2,7 +2,7 @@ import { PlatformPackager, BuildInfo } from "./platformPackager"
2
2
import { Platform , OsXBuildOptions } from "./metadata"
3
3
import * as path from "path"
4
4
import { Promise as BluebirdPromise } from "bluebird"
5
- import { log , spawn , statOrNull } from "./util"
5
+ import { log , debug , spawn , statOrNull } from "./util"
6
6
import { createKeychain , deleteKeychain , CodeSigningInfo , generateKeychainName } from "./codeSign"
7
7
import { path7za } from "7zip-bin"
8
8
import deepAssign = require( "deep-assign" )
@@ -162,7 +162,7 @@ export default class OsXPackager extends PlatformPackager<OsXBuildOptions> {
162
162
log ( "Creating ZIP for Squirrel.Mac" )
163
163
// we use app name here - see https://github.com/electron-userland/electron-builder/pull/204
164
164
const resultPath = `${ this . appName } -${ this . metadata . version } -mac.zip`
165
- const args = [ "a" , "-mm=" + ( this . devMetadata . build . compression === "store" ? "Copy" : "Deflate" ) , "-bb0" , "-bd" ]
165
+ const args = [ "a" , "-mm=" + ( this . devMetadata . build . compression === "store" ? "Copy" : "Deflate" ) , "-bb" + ( debug . enabled ? "3" : "0" ) , "-bd" ]
166
166
if ( this . devMetadata . build . compression === "maximum" ) {
167
167
// http://superuser.com/a/742034
168
168
//noinspection SpellCheckingInspection
@@ -172,7 +172,7 @@ export default class OsXPackager extends PlatformPackager<OsXBuildOptions> {
172
172
173
173
return spawn ( path7za , args , {
174
174
cwd : outDir ,
175
- stdio : [ "ignore" , "ignore" , "inherit" ] ,
175
+ stdio : [ "ignore" , debug . enabled ? "inherit" : "ignore" , "inherit" ] ,
176
176
} )
177
177
. thenReturn ( path . join ( outDir , resultPath ) )
178
178
}
0 commit comments