Skip to content

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

GitHubPublisher

Overrides

HttpPublisher.constructor

Properties

_release

readonly _release: Lazy<any>


context

protected readonly context: PublishContext

Inherited from

HttpPublisher.context


providerName

readonly providerName: "github" = "github"

Overrides

HttpPublisher.providerName

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

HttpPublisher.doUpload


getRelease()

getRelease(): Promise<any>

Returns

Promise<any>


toString()

toString(): string

Returns

string

Overrides

HttpPublisher.toString


upload()

upload(task): Promise<any>

Parameters

task: UploadTask

Returns

Promise<any>

Inherited from

HttpPublisher.upload