Skip to content

builder util runtime.Interface.BitbucketOptions

Electron-Builder / builder-util-runtime / BitbucketOptions

Bitbucket options. https://bitbucket.org/ Define BITBUCKET_TOKEN environment variable.

For converting an app password to a usable token, you can utilize this

convertAppPassword(owner: string, appPassword: string) {
 const base64encodedData = Buffer.from(`${owner}:${appPassword.trim()}`).toString("base64")
 return `Basic ${base64encodedData}`
}

Extends

Properties

channel?

readonly optional channel: null | string

The channel.

Default

latest

owner

readonly owner: string

Repository owner


provider

readonly provider: "bitbucket"

The provider. Must be bitbucket.

Overrides

PublishConfiguration.provider


slug

readonly slug: string

Repository slug/name


token?

readonly optional token: null | string

The app password to support auto-update from private bitbucket repositories.


username?

readonly optional username: null | string

The user name to support auto-update from private bitbucket repositories.