@plasmo-corp/bms
TypeScript icon, indicating that this package has built-in type declarations

1.10.0 • Public • Published

Browser Market Submit

A nodejs library from plasmo to deploy browser extensions to multiple stores. It is made to be used in bpp

Supported stores:

Core packages used

  • @plasmo-corp/cwu - for uploading extensions to Chrome Web Store.
  • @plasmo-corp/mwu - for signing and uploading extensions to Firefox Addon API.
  • @plasmo-corp/ewu - for uploading and publishing extensions to Edge Add-ons API.
  • Puppeteer - for uploading extensions to Opera Add-ons store.

Installing

npm i -D @plasmo-corp/bms
# or
pnpm i -D @plasmo-corp/bms
# or
yarn add -D @plasmo-corp/bms

Usage

Following this doc to gather the tokens necessary for the deployment, OR use bpp's json schema which provides intellisense on editors such as vscode. To use the json schema, create a keys.json file in vscode with the following content:

{
  "$schema": "https://raw.githubusercontent.com/plasmo-corp/bpp/v2/keys.schema.json"
}

Then, the nodejs API can be consumed as follows:

import {
  deployChrome,
  deployEdge,
  deployFirefox,
  deployOpera,
} from "@plasmo-corp/bms"

deployChrome({
  extId: "EXT_ID",
  refreshToken: "refreshToken",
  clientId: "clientId",
  zip: "dist/some-zip-v{version}.zip",
  verbose: false
})

deployFirefox({
  extId: "EXT_ID",
  apiKey: "api_key",
  apiSecret: "api_secret",
  zip: "dist/some-zip-v{version}.zip",
  verbose: false
})

deployEdge({
  clientId: "aaaaaaa-aaaa-bbbb-cccc-dddddddddddd",
  clientSecret: "abcdefg",
  productId: "aaaaaaa-aaaa-bbbb-cccc-dddddddddddd",
  accessTokenUrl: "https://login.microsoftonline.com/aaaaaaa-aaaa-bbbb-cccc-dddddddddddd/oauth2/v2.0/token",
  zip: "dist/some-zip-v{version}.zip",
  notes: "Changes for reviewers",
  verbose: false
})

deployOpera({
  packageId: "123456",
  sessionid: "sessionid_value",
  csrftoken: "csrftoken_value",
  zip: "dist/some-zip-v{version}.zip",
  changelog: "Some changes",
  verbose: false
})

Support

Join the Discord channel!

Acknowledgment

This library was inspired by:

License

MIT Plasmo Corp.

Package Sidebar

Install

npm i @plasmo-corp/bms

Weekly Downloads

2

Version

1.10.0

License

MIT

Unpacked Size

1.1 MB

Total Files

5

Last publish

Collaborators

  • louisgv