跳到内容

electron publish.类.SnapStorePublisher

Electron-Builder / electron-publish / SnapStorePublisher

继承自

构造函数

new SnapStorePublisher()

new SnapStorePublisher(context, options): SnapStorePublisher

参数

context: PublishContext

options: SnapStoreOptions

返回值

SnapStorePublisher

重写

Publisher.constructor

属性

上下文

protected readonly context: PublishContext

继承自

Publisher.context


提供者名称

readonly providerName: "snapStore" = "snapStore"

重写

Publisher.providerName

方法

createProgressBar()

protected createProgressBar(fileName, size): null | ProgressBar

参数

fileName: string

size: number

返回值

null | ProgressBar

继承自

Publisher.createProgressBar


createReadStreamAndProgressBar()

protected createReadStreamAndProgressBar(file, fileStat, progressBar, reject): ReadableStream

参数

file: string

fileStat: Stats

progressBar: null | ProgressBar

reject

返回值

ReadableStream

继承自

Publisher.createReadStreamAndProgressBar


toString()

toString(): string

返回值

字符串

重写

Publisher.toString


upload()

upload(task): Promise<any>

参数

task: UploadTask

返回值

Promise<any>

重写

Publisher.upload