-
-
Notifications
You must be signed in to change notification settings - Fork 7
Building the extension on Ubuntu
Armin Sebastian edited this page May 31, 2024
·
3 revisions
This guide has been tested on Ubuntu 22.04, with Bash.
The following commands can be used to prepare a new Ubuntu instance for building the extension.
Open the console, install Git and nvm.
sudo apt update && sudo apt install -y build-essential git
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
Check the installed build dependencies.
git --version && nvm --version
The build process consists of cloning the repository, installing the dependencies, and building the extension.
Open the console, build the extension for the intended browser.
# clone repository (replace <version>)
git clone --depth 1 --branch v<version> https://github.com/dessant/ping-blocker.git
cd ping-blocker
# install Node.js version specified in .nvmrc
nvm install
# install dependencies
npm install --legacy-peer-deps
# build for Chrome
npm run build:prod:zip:chrome
# build for Edge
npm run build:prod:zip:edge
# build for Firefox
npm run build:prod:zip:firefox
The extension will be in the artifacts\<browser>
folder.