electron publish.Class.SpacesPublisher
Electron-Builder / electron-publish / SpacesPublisher
继承自¶
BaseS3Publisher
构造函数¶
new SpacesPublisher()¶
new SpacesPublisher(
context
,info
):SpacesPublisher
参数¶
• context: PublishContext
• info: SpacesOptions
返回值¶
覆盖¶
BaseS3Publisher.constructor
属性¶
context¶
protected
readonly
context:PublishContext
继承自¶
BaseS3Publisher.context
providerName¶
readonly
providerName:"spaces"
="spaces"
覆盖¶
BaseS3Publisher.providerName
方法¶
configureS3Options()¶
protected
configureS3Options(args
):void
参数¶
• args: string
[]
返回值¶
void
覆盖¶
BaseS3Publisher.configureS3Options
createProgressBar()¶
protected
createProgressBar(fileName
,size
):null
|ProgressBar
参数¶
• fileName: string
• size: number
返回值¶
null
| ProgressBar
继承自¶
BaseS3Publisher.createProgressBar
createReadStreamAndProgressBar()¶
protected
createReadStreamAndProgressBar(file
,fileStat
,progressBar
,reject
):ReadableStream
参数¶
• file: string
• fileStat: Stats
• progressBar: null
| ProgressBar
• reject
返回值¶
ReadableStream
继承自¶
BaseS3Publisher.createReadStreamAndProgressBar
getBucketName()¶
protected
getBucketName():string
返回值¶
string
覆盖¶
BaseS3Publisher.getBucketName
toString()¶
toString():
string
返回值¶
string
继承自¶
BaseS3Publisher.toString
upload()¶
upload(
task
):Promise
<any
>
参数¶
• task: UploadTask
返回值¶
Promise
<any
>
继承自¶
BaseS3Publisher.upload
checkAndResolveOptions()¶
static
checkAndResolveOptions(options
,channelFromAppVersion
,errorIfCannot
):Promise
<void
>
参数¶
• options: SpacesOptions
• channelFromAppVersion: null
| string
• errorIfCannot: boolean
返回值¶
Promise
<void
>