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:
-
pnpm i -P --frozen-lockfile
-
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:-
also install:
-
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. -
To install:
cargo install --locked cargo-run-bin
-
-
remove artifacts from the previous build:
pnpm su clean
-
-
pnpm zip:ff
this will create two files in the
.output
directory:coub-addons-x.x.x-firefox.zip
- unsigned extensioncoub-addons-x.x.x-sources.zip
- source code of the extension