Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.51 KB

SOURCE_CODE_REVIEW.md

File metadata and controls

48 lines (32 loc) · 1.51 KB

Firefox Source Code Review

The extension requires globally installed Node.js with Corepack enabled. The version of Node.js used is specified in .nvmrc.

To build the extension or zip it:

  1. pnpm i -P --frozen-lockfile
  2. the source code archive contains an already built WASM of the segmenter-utils package, which will not be automatically built from the source code. If there is no need to rebuild it, skip this step and go to the next one, otherwise:

    1. also install:

      • Rust

        If rustup is used, it should automatically install everything you need when building. If not, you need to manually install the version and target specified in the rust-toolchain.toml file.

      • cargo-run-bin

        To install:

        cargo install --locked cargo-run-bin
    2. remove artifacts from the previous build:

      pnpm su clean
  3. pnpm zip:ff

    this will create two files in the .output directory:

    • coub-addons-x.x.x-firefox.zip - unsigned extension
    • coub-addons-x.x.x-sources.zip - source code of the extension