-
-
Notifications
You must be signed in to change notification settings - Fork 22
Building the extension on Ubuntu
Armin Sebastian edited this page May 30, 2024
·
7 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-get update && sudo apt-get 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/clear-browsing-data.git
cd clear-browsing-data
# 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
# build for Opera
npm run build:prod:zip:opera
The extension will be in the artifacts\<browser>
folder.