Skip to content

Build Process

Eric Bixby edited this page May 13, 2022 · 35 revisions

Operating System

Built on Ubuntu 20.04.4 LTS.

Install NodeJS

Install NodeJS version 12.22.12 (npm version 6.14.16) Use nvm to install a particular version of node.

Source Folder

Because the output will contain relative paths, when building, the source code folder needs to be at the same folder level as the original build (the names don't need to match, just the folder levels).

~/temp/auto-sort-bookmarks-webext-3.4.3

Install web-ext

Install web-ext:

npm i -g web-ext

More information: web-ext

Install weh

Install weh:

npm i -g gulp@4.0.2
npm i -g weh@2.10.0

Override dependencies with the same version used for the submitted source rather than the latest:

cd `npm root -g`/weh
cp ~/temp/auto-sort-bookmarks-webext-3.4.3/weh-npm-shrinkwrap.json ./npm-shrinkwrap.json
npm i

More information: weh (weh depends on NodeJS 12.X; newer versions not supported)

Build

The following script will build/generate the target Javascript code and bundle it into a .xpi file:

cd ~/temp/auto-sort-bookmarks-webext-3.4.3
./build_ff.sh

The only difference between the submitted source and the generated source should be the "build.date" file.

build.date: Fri Apr 29 2022 18:13:44 GMT-0700 (Pacific Daylight Time)