Skip to content

electron publish.Class.HttpPublisher

Electron-Builder / electron-publish / HttpPublisher

Extends

Extended by

Constructors

new HttpPublisher()

protected new HttpPublisher(context, useSafeArtifactName): HttpPublisher

Parameters

context: PublishContext

useSafeArtifactName: boolean = false

Returns

HttpPublisher

Overrides

Publisher.constructor

Properties

context

protected readonly context: PublishContext

Inherited from

Publisher.context

Accessors

providerName

get abstract providerName(): PublishProvider

Returns

PublishProvider

Inherited from

Publisher.providerName

Methods

createProgressBar()

protected createProgressBar(fileName, size): null | ProgressBar

Parameters

fileName: string

size: number

Returns

null | ProgressBar

Inherited from

Publisher.createProgressBar


createReadStreamAndProgressBar()

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

Parameters

file: string

fileStat: Stats

progressBar: null | ProgressBar

reject

Returns

ReadableStream

Inherited from

Publisher.createReadStreamAndProgressBar


doUpload()

abstract protected doUpload(fileName, arch, dataLength, requestProcessor, file): Promise<any>

Parameters

fileName: string

arch: Arch

dataLength: number

requestProcessor

file: string

Returns

Promise<any>


toString()

abstract toString(): string

Returns

string

Inherited from

Publisher.toString


upload()

upload(task): Promise<any>

Parameters

task: UploadTask

Returns

Promise<any>

Overrides

Publisher.upload