Skip to content

electron publish.Class.SpacesPublisher

Electron-Builder / electron-publish / SpacesPublisher

Extends

  • BaseS3Publisher

Constructors

new SpacesPublisher()

new SpacesPublisher(context, info): SpacesPublisher

Parameters

context: PublishContext

info: SpacesOptions

Returns

SpacesPublisher

Overrides

BaseS3Publisher.constructor

Properties

context

protected readonly context: PublishContext

Inherited from

BaseS3Publisher.context


providerName

readonly providerName: "spaces" = "spaces"

Overrides

BaseS3Publisher.providerName

Methods

configureS3Options()

protected configureS3Options(args): void

Parameters

args: string[]

Returns

void

Overrides

BaseS3Publisher.configureS3Options


createProgressBar()

protected createProgressBar(fileName, size): null | ProgressBar

Parameters

fileName: string

size: number

Returns

null | ProgressBar

Inherited from

BaseS3Publisher.createProgressBar


createReadStreamAndProgressBar()

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

Parameters

file: string

fileStat: Stats

progressBar: null | ProgressBar

reject

Returns

ReadableStream

Inherited from

BaseS3Publisher.createReadStreamAndProgressBar


getBucketName()

protected getBucketName(): string

Returns

string

Overrides

BaseS3Publisher.getBucketName


toString()

toString(): string

Returns

string

Inherited from

BaseS3Publisher.toString


upload()

upload(task): Promise<any>

Parameters

task: UploadTask

Returns

Promise<any>

Inherited from

BaseS3Publisher.upload


checkAndResolveOptions()

static checkAndResolveOptions(options, channelFromAppVersion, errorIfCannot): Promise<void>

Parameters

options: SpacesOptions

channelFromAppVersion: null | string

errorIfCannot: boolean

Returns

Promise<void>