@@ -20,8 +20,24 @@ Find out more about how to use the extension as a Dapp developper, cookbook, as
20202 . Run ` corepack enable ` [ More information] ( https://github.com/nodejs/corepack?tab=readme-ov-file#corepack-enable--name )
21212 . Install dependencies via ` yarn install `
22223 . Build all packages via ` yarn build `
23- - The ` /packages/extension/build ` will contain the exact code used in the add-on
24- 4 . To regenerate the dst, and src compressed files run: ` yarn build:zip `
23+ - The ` /packages/extension/build ` directory will contain the exact code used in the add-on, and should exactly match the uncompressed ` master-build ` .
24+
25+ NOTE: If you would like to regenerate the compressed ` master-build.zip ` , and ` master-src.zip ` files run: ` yarn build:zip `
26+
27+ ## Ensuring ` master-build ` and ` master-src ` dont have any diffs (For maintainers)
28+
29+ Summary: These are the steps to ensure the following builds don't have any diffs so that the firefox review goes smoothly.
30+
31+ 1 . Run ` yarn build `
32+ 2 . Run ` yarn build:zip ` - This will generate a ` master-build.zip ` , and ` master-src.zip ` .
33+ 3 . Move ` master-src.zip ` , and ` master-build.zip ` to its own enviornment/folder.
34+ 4 . Uncompress ` master-src.zip ` to ` master-zrc ` and inside of ` master-src ` run ` yarn && yarn build ` .
35+ 5 . Uncompress ` master-build.zip ` to ` master-build ` .
36+ 6 . Now we can compare the two builds using ` diff ` , and ` comm `
37+ - Run ` diff -qr <path-to-master-build>/master-build <path-to-master-src>/packages/extension/build | sort `
38+ 7 . To sanity check important files (` background.js ` , and ` extension.js ` ) you can also run:
39+ - ` comm -23 <(sort <path-to-master-build>/background.js) <(sort <path-to-master-src>/packages/extension/build/background.js) > diff `
40+ - ` comm -23 <(sort <path-to-master-build>/extension.js) <(sort <path-to-master-src>/packages/extension/build/extension.js) > diff `
2541
2642## Development version
2743
0 commit comments