-
-
Notifications
You must be signed in to change notification settings - Fork 203
Building the extension on Windows
Armin Sebastian edited this page Jul 11, 2018
·
16 revisions
This guide has been tested on Windows 10 64-bit, version 1803, with Command Prompt and PowerShell.
The build dependencies can be installed with Chocolatey, follow this guide to set it up. Alternatively, download and install the listed dependencies from their official sources.
Open the console as an administrator, install Git, Node.js and Yarn with Chocolatey.
choco install git -y --version 2.18.0
choco install nodejs-lts -y --version 8.11.3
choco install yarn --ignore-dependencies -y --version 1.7.0
Open the console as the current user, check the installed build dependencies.
git --version && node --version && yarn --version
The build process consists of cloning the repository, installing the dependencies, and building the extension.
Open the console as the current user, build the extension for the intended browsers.
# clone repository (replace <version>)
git clone --depth 1 --branch v<version> https://github.com/dessant/search-by-image.git
cd search-by-image
# install dependencies
yarn
# build for all supported browsers
yarn build:prod:zip:all
# build for a specific browser
# yarn build:prod:zip:chrome
# yarn build:prod:zip:firefox
# yarn build:prod:zip:opera
The extension will be in the artifacts\<browser>
folder.