electron publish.Class.GitHubPublisher
Electron-Builder / electron-publish / GitHubPublisher
Extends¶
Constructors¶
new GitHubPublisher()¶
new GitHubPublisher(
context
,info
,version
,options
):GitHubPublisher
Parameters¶
• context: PublishContext
• info: GithubOptions
• version: string
• options: PublishOptions
= {}
Returns¶
Overrides¶
Properties¶
_release¶
readonly
_release:Lazy
<any
>
context¶
protected
readonly
context:PublishContext
Inherited from¶
providerName¶
readonly
providerName:"github"
="github"
Overrides¶
Methods¶
createProgressBar()¶
protected
createProgressBar(fileName
,size
):null
|ProgressBar
Parameters¶
• fileName: string
• size: number
Returns¶
null
| ProgressBar
Inherited from¶
HttpPublisher
.createProgressBar
createReadStreamAndProgressBar()¶
protected
createReadStreamAndProgressBar(file
,fileStat
,progressBar
,reject
):ReadableStream
Parameters¶
• file: string
• fileStat: Stats
• progressBar: null
| ProgressBar
• reject
Returns¶
ReadableStream
Inherited from¶
HttpPublisher
.createReadStreamAndProgressBar
deleteRelease()¶
deleteRelease():
Promise
<any
>
Returns¶
Promise
<any
>
doUpload()¶
protected
doUpload(fileName
,arch
,dataLength
,requestProcessor
):Promise
<any
>
Parameters¶
• fileName: string
• arch: Arch
• dataLength: number
• requestProcessor
Returns¶
Promise
<any
>
Overrides¶
getRelease()¶
getRelease():
Promise
<any
>
Returns¶
Promise
<any
>
toString()¶
toString():
string
Returns¶
string
Overrides¶
upload()¶
upload(
task
):Promise
<any
>
Parameters¶
• task: UploadTask
Returns¶
Promise
<any
>