app builder lib.Class.MacPackager
Electron-Builder / app-builder-lib / MacPackager
Extends¶
Constructors¶
new MacPackager()¶
new MacPackager(
info
):MacPackager
Parameters¶
• info: Packager
Returns¶
Overrides¶
Properties¶
appInfo¶
readonly
appInfo:AppInfo
Inherited from¶
codeSigningInfo¶
readonly
codeSigningInfo:MemoLazy
<null
|CreateKeychainOptions
,CodeSigningInfo
>
info¶
readonly
info:Packager
Inherited from¶
platform¶
readonly
platform:Platform
Inherited from¶
platformSpecificBuildOptions¶
readonly
platformSpecificBuildOptions:MacConfiguration
Inherited from¶
PlatformPackager
.platformSpecificBuildOptions
Accessors¶
buildResourcesDir¶
get
buildResourcesDir():string
Returns¶
string
Inherited from¶
PlatformPackager
.buildResourcesDir
compression¶
get
compression():CompressionLevel
Returns¶
Inherited from¶
config¶
get
config():Configuration
Returns¶
Inherited from¶
debugLogger¶
get
debugLogger():DebugLogger
Returns¶
Inherited from¶
defaultTarget¶
get
defaultTarget():string
[]
Returns¶
string
[]
Overrides¶
PlatformPackager
.defaultTarget
fileAssociations¶
get
fileAssociations():FileAssociation
[]
Returns¶
Inherited from¶
PlatformPackager
.fileAssociations
forceCodeSigning¶
get
forceCodeSigning():boolean
Returns¶
boolean
Inherited from¶
PlatformPackager
.forceCodeSigning
packagerOptions¶
get
packagerOptions():PackagerOptions
Returns¶
Inherited from¶
PlatformPackager
.packagerOptions
projectDir¶
get
projectDir():string
Returns¶
string
Inherited from¶
resourceList¶
get
resourceList():Promise
<string
[]>
Returns¶
Promise
<string
[]>
Inherited from¶
Methods¶
applyCommonInfo()¶
applyCommonInfo(
appPlist
,contentsPath
):Promise
<void
>
Parameters¶
• appPlist: any
• contentsPath: string
Returns¶
Promise
<void
>
artifactPatternConfig()¶
artifactPatternConfig(
targetSpecificOptions
,defaultPattern
):object
Parameters¶
• targetSpecificOptions: undefined
| null
| TargetSpecificOptions
• defaultPattern: undefined
| string
Returns¶
object
isUserForced¶
isUserForced:
boolean
=!!userSpecifiedPattern
pattern¶
pattern:
string
Inherited from¶
PlatformPackager
.artifactPatternConfig
computeAppOutDir()¶
protected
computeAppOutDir(outDir
,arch
):string
Parameters¶
• outDir: string
• arch: Arch
Returns¶
string
Inherited from¶
PlatformPackager
.computeAppOutDir
computeSafeArtifactName()¶
computeSafeArtifactName(
suggestedName
,ext
,arch
?,skipDefaultArch
?,defaultArch
?,safePattern
?):null
|string
Parameters¶
• suggestedName: null
| string
• ext: string
• arch?: null
| Arch
• skipDefaultArch?: boolean
= true
• defaultArch?: string
• safePattern?: string
= "${name}-${version}-${arch}.${ext}"
Returns¶
null
| string
Inherited from¶
PlatformPackager
.computeSafeArtifactName
createGetFileMatchersOptions()¶
createGetFileMatchersOptions(
outDir
,arch
,customBuildOptions
):GetFileMatchersOptions
Parameters¶
• outDir: string
• arch: Arch
• customBuildOptions: PlatformSpecificBuildOptions
Returns¶
GetFileMatchersOptions
Inherited from¶
PlatformPackager
.createGetFileMatchersOptions
createTargets()¶
createTargets(
targets
,mapper
):void
Parameters¶
• targets: string
[]
• mapper
Returns¶
void
Overrides¶
PlatformPackager
.createTargets
createTransformerForExtraFiles()¶
protected
createTransformerForExtraFiles(packContext
):null
|FileTransformer
Parameters¶
• packContext: PackContext
Returns¶
null
| FileTransformer
Inherited from¶
PlatformPackager
.createTransformerForExtraFiles
dispatchArtifactCreated()¶
dispatchArtifactCreated(
file
,target
,arch
,safeArtifactName
?):Promise
<void
>
Parameters¶
• file: string
• target: null
| Target
• arch: null
| Arch
• safeArtifactName?: null
| string
Returns¶
Promise
<void
>
Inherited from¶
PlatformPackager
.dispatchArtifactCreated
doFlat()¶
protected
doFlat(appPath
,outFile
,identity
,keychain
):Promise
<any
>
Parameters¶
• appPath: string
• outFile: string
• identity: Identity
• keychain: undefined
| null
| string
Returns¶
Promise
<any
>
doGetCscPassword()¶
doGetCscPassword():
undefined
|null
|string
Returns¶
undefined
| null
| string
Inherited from¶
PlatformPackager
.doGetCscPassword
doPack()¶
protected
doPack(outDir
,appOutDir
,platformName
,arch
,platformSpecificBuildOptions
,targets
):Promise
<any
>
Parameters¶
• outDir: string
• appOutDir: string
• platformName: ElectronPlatformName
• arch: Arch
• platformSpecificBuildOptions: MacConfiguration
• targets: Target
[]
Returns¶
Promise
<any
>
Overrides¶
doSign()¶
protected
doSign(opts
,customSignOptions
):Promise
<void
>
Parameters¶
• opts: SignOptions
• customSignOptions: MacConfiguration
Returns¶
Promise
<void
>
doSignAfterPack()¶
protected
doSignAfterPack(outDir
,appOutDir
,platformName
,arch
,platformSpecificBuildOptions
,targets
):Promise
<void
>
Parameters¶
• outDir: string
• appOutDir: string
• platformName: ElectronPlatformName
• arch: Arch
• platformSpecificBuildOptions: MacConfiguration
• targets: Target
[]
Returns¶
Promise
<void
>
Inherited from¶
PlatformPackager
.doSignAfterPack
expandArtifactBeautyNamePattern()¶
expandArtifactBeautyNamePattern(
targetSpecificOptions
,ext
,arch
?):string
Parameters¶
• targetSpecificOptions: undefined
| null
| TargetSpecificOptions
• ext: string
• arch?: null
| Arch
Returns¶
string
Inherited from¶
PlatformPackager
.expandArtifactBeautyNamePattern
expandArtifactNamePattern()¶
expandArtifactNamePattern(
targetSpecificOptions
,ext
,arch
?,defaultPattern
?,skipDefaultArch
?,defaultArch
?):string
Parameters¶
• targetSpecificOptions: undefined
| null
| TargetSpecificOptions
• ext: string
• arch?: null
| Arch
• defaultPattern?: string
• skipDefaultArch?: boolean
= true
• defaultArch?: string
Returns¶
string
Inherited from¶
PlatformPackager
.expandArtifactNamePattern
expandMacro()¶
expandMacro(
pattern
,arch
?,extra
?,isProductNameSanitized
?):string
Parameters¶
• pattern: string
• arch?: null
| string
• extra?: any
= {}
• isProductNameSanitized?: boolean
= true
Returns¶
string
Inherited from¶
generateName2()¶
generateName2(
ext
,classifier
,deployment
):string
Parameters¶
• ext: null
| string
• classifier: undefined
| null
| string
• deployment: boolean
Returns¶
string
Inherited from¶
PlatformPackager
.generateName2
getCscLink()¶
getCscLink(
extraEnvName
?):undefined
|null
|string
Parameters¶
• extraEnvName?: null
| string
Returns¶
undefined
| null
| string
Inherited from¶
getCscPassword()¶
getCscPassword():
string
Returns¶
string
Inherited from¶
PlatformPackager
.getCscPassword
getDefaultFrameworkIcon()¶
getDefaultFrameworkIcon():
null
|string
Returns¶
null
| string
Inherited from¶
PlatformPackager
.getDefaultFrameworkIcon
getElectronDestinationDir()¶
getElectronDestinationDir(
appOutDir
):string
Parameters¶
• appOutDir: string
Returns¶
string
Overrides¶
PlatformPackager
.getElectronDestinationDir
getElectronSrcDir()¶
getElectronSrcDir(
dist
):string
Parameters¶
• dist: string
Returns¶
string
Overrides¶
PlatformPackager
.getElectronSrcDir
getIconPath()¶
getIconPath():
Promise
<null
|string
>
Returns¶
Promise
<null
| string
>
Overrides¶
getMacOsResourcesDir()¶
getMacOsResourcesDir(
appOutDir
):string
Parameters¶
• appOutDir: string
Returns¶
string
Inherited from¶
PlatformPackager
.getMacOsResourcesDir
getOrConvertIcon()¶
protected
getOrConvertIcon(format
):Promise
<null
|string
>
Parameters¶
• format: IconFormat
Returns¶
Promise
<null
| string
>
Inherited from¶
PlatformPackager
.getOrConvertIcon
getResource()¶
getResource(
custom
, …names
):Promise
<null
|string
>
Parameters¶
• custom: undefined
| null
| string
• …names: string
[]
Returns¶
Promise
<null
| string
>
Inherited from¶
getResourcesDir()¶
getResourcesDir(
appOutDir
):string
Parameters¶
• appOutDir: string
Returns¶
string
Inherited from¶
PlatformPackager
.getResourcesDir
getTempFile()¶
getTempFile(
suffix
):Promise
<string
>
Parameters¶
• suffix: string
Returns¶
Promise
<string
>
Inherited from¶
pack()¶
pack(
outDir
,arch
,targets
,taskManager
):Promise
<void
>
Parameters¶
• outDir: string
• arch: Arch
• targets: Target
[]
• taskManager: AsyncTaskManager
Returns¶
Promise
<void
>
Overrides¶
packageInDistributableFormat()¶
protected
packageInDistributableFormat(appOutDir
,arch
,targets
,taskManager
):void
Parameters¶
• appOutDir: string
• arch: Arch
• targets: Target
[]
• taskManager: AsyncTaskManager
Returns¶
void
Inherited from¶
PlatformPackager
.packageInDistributableFormat
prepareAppInfo()¶
protected
prepareAppInfo(appInfo
):AppInfo
Parameters¶
• appInfo: AppInfo
Returns¶
Overrides¶
PlatformPackager
.prepareAppInfo
resolveIcon()¶
resolveIcon(
sources
,fallbackSources
,outputFormat
):Promise
<IconInfo
[]>
Parameters¶
• sources: string
[]
• fallbackSources: string
[]
• outputFormat: IconFormat
Returns¶
Promise
<IconInfo
[]>
Inherited from¶
signApp()¶
protected
signApp(packContext
,isAsar
):Promise
<boolean
>
Parameters¶
• packContext: PackContext
• isAsar: boolean
Returns¶
Promise
<boolean
>