electron publish.类.SnapStorePublisher
Electron-Builder / electron-publish / SnapStorePublisher
继承自¶
构造函数¶
new SnapStorePublisher()¶
new SnapStorePublisher(
context,options):SnapStorePublisher
参数¶
• context: PublishContext
• options: SnapStoreOptions
返回值¶
重写¶
属性¶
上下文¶
protectedreadonlycontext:PublishContext
继承自¶
提供者名称¶
readonlyproviderName:"snapStore"="snapStore"
重写¶
方法¶
createProgressBar()¶
protectedcreateProgressBar(fileName,size):null|ProgressBar
参数¶
• fileName: string
• size: number
返回值¶
null | ProgressBar
继承自¶
createReadStreamAndProgressBar()¶
protectedcreateReadStreamAndProgressBar(file,fileStat,progressBar,reject):ReadableStream
参数¶
• file: string
• fileStat: Stats
• progressBar: null | ProgressBar
• reject
返回值¶
ReadableStream
继承自¶
Publisher.createReadStreamAndProgressBar
toString()¶
toString():
string
返回值¶
字符串
重写¶
upload()¶
upload(
task):Promise<any>
参数¶
• task: UploadTask
返回值¶
Promise<any>