From fe49f7782a09a9dfa439ead70b907fb7fc8996ae Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 15 Jan 2022 06:53:00 -0500 Subject: [PATCH] Update build instructions --- dist/README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/dist/README.md b/dist/README.md index 1874153e9..37622c5e9 100644 --- a/dist/README.md +++ b/dist/README.md @@ -60,19 +60,22 @@ On Windows, the settings are saved in a SQlite file located at `%APPDATA%\Mozill ### Build instructions (for developers) -- Clone [uBlock](https://github.com/gorhill/uBlock) and [uAssets](https://github.com/uBlockOrigin/uAssets) repositories in the same parent directory - - `git clone https://github.com/gorhill/uBlock.git` - - `git clone https://github.com/uBlockOrigin/uAssets.git` +- Clone [uBlock repo](https://github.com/gorhill/uBlock): `git clone https://github.com/gorhill/uBlock.git` - Set path to uBlock: `cd uBlock` - The official version of uBO is in the `master` branch - `git checkout master` - Build the plugin: - - Chromium: `./tools/make-chromium.sh` - - Firefox webext: `./tools/make-firefox.sh all` - - Firefox legacy: - - `git checkout firefox-legacy` - - `./tools/make-firefox-legacy.sh all` + - Chromium: `make chromium` + - Firefox: `make firefox` + - NPM package: `make npm` - Load the result of the build into your browser: - - Chromium: load the unpacked extension folder `/uBlock/dist/build/uBlock0.chromium/` in Chromium to use the extension. - - Firefox: drag-and-drop `/uBlock/dist/build/uBlock0.firefox.xpi` or `/uBlock/dist/build/uBlock0.firefox-legacy.xpi` into Firefox. + - Chromium: + - Navigate to `chrome://extensions/` + - Check _"Developer mode"_ + - Click _"Load unpacked"_ + - Select `/uBlock/dist/build/uBlock0.chromium/` + - Firefox: + - Navigate to `about:debugging#/runtime/this-firefox` + - Click _"Load Temporary Add-on..."_ + - Select `/uBlock/dist/build/uBlock0.firefox/`