electron publish.Class.GitHubPublisher
Electron-Builder / electron-publish / GitHubPublisher
继承自¶
构造函数¶
new GitHubPublisher()¶
new GitHubPublisher(
context
,info
,version
,options
):GitHubPublisher
参数¶
• context: PublishContext
• info: GithubOptions
• version: string
• options: PublishOptions
= {}
返回值¶
重写¶
属性¶
_release¶
readonly
_release:Lazy
<any
>
context¶
protected
readonly
context:PublishContext
继承自¶
providerName¶
readonly
providerName:"github"
="github"
重写¶
方法¶
createProgressBar()¶
protected
createProgressBar(fileName
,size
):null
|ProgressBar
参数¶
• fileName: string
• size: number
返回值¶
null
| ProgressBar
继承自¶
HttpPublisher
.createProgressBar
createReadStreamAndProgressBar()¶
protected
createReadStreamAndProgressBar(file
,fileStat
,progressBar
,reject
):ReadableStream
参数¶
• file: string
• fileStat: Stats
• progressBar: null
| ProgressBar
• reject
返回值¶
ReadableStream
继承自¶
HttpPublisher
.createReadStreamAndProgressBar
deleteRelease()¶
deleteRelease():
Promise
<any
>
返回值¶
Promise
<any
>
doUpload()¶
protected
doUpload(fileName
,arch
,dataLength
,requestProcessor
):Promise
<any
>
参数¶
• fileName: string
• arch: Arch
• dataLength: number
• requestProcessor
返回值¶
Promise
<any
>
重写¶
getRelease()¶
getRelease():
Promise
<any
>
返回值¶
Promise
<any
>
toString()¶
toString():
string
返回值¶
string
重写¶
upload()¶
upload(
task
):Promise
<any
>
参数¶
• task: UploadTask
返回值¶
Promise
<any
>