Skip to content

Build Process

Eric Bixby edited this page Apr 26, 2022 · 35 revisions

Dependencies

Click on links for install instructions:

All Versions Setup

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). For comparison, here's the path I extracted the source code into for version 3.4.2:

/Users/ericbixby/temp/auto-sort-bookmarks-webext-3.4.2

The only difference should be the "build.date" file.

Install web-ext:

npm i -g web-ext

Version 3.4.2

built: Thu Apr 21 2022 19:37:20 GMT-0700 (Pacific Daylight Time)

First, follow the instructions under the section "All Versions Setup".

Install weh:

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

Override dependency with the same version used for the submitted source:

cd /usr/local/lib/node_modules/weh
cp /Users/ericbixby/temp/auto-sort-bookmarks-webext-3.4.2/weh-npm-shrinkwrap.json ./npm-shrinkwrap.json
npm i

Now build the code:

cd /Users/ericbixby/temp/auto-sort-bookmarks-webext-3.4.2
./build_ff.sh

Build

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

build_ff.sh