Get FlowCrypt browser extension at: https://flowcrypt.com/download
This project is written in TypeScript. Browsers only understand JavaScript, so the project needs to be transpiled. You need to build the project the first time you download it, and build it after each change you make to see the result in the browser. To get started, please follow the instructions below:
- Install the tooling by running the following command after navigating to the appropriate folder:
$ cd some/folder/flowcrypt-browser
$ npm install
- To build the project (currently available for Linux and Mac only), run the following command:
$ npm run build
After running this command, you can find your built project in the build/chrome-consumer
and build/firefox-consumer
folders.
To load the extension in Google Chrome, please follow these steps:
- Open your Chrome browser and navigate to
chrome://extensions/
. - If not already enabled, toggle on the
Developer mode
switch located at the top-right corner. - Click on the
Load Unpacked
button. - Browse to and select the appropriate folder, either
build/chrome-consumer
orchrome-enterprise
.
Similarly, to load the extension in Firefox, follow these steps:
- Open your Firefox browser and navigate to
about:debugging
. - Click on the
This Firefox
tab. - Click on the
Load Temporary Add-on
button located at the top-right corner. - Browse to and select the appropriate folder, either
build/firefox-consumer
orfirefox-enterprise
, and select themanifest.json
file.
If you prefer, you can also use the run_firefox
script (npm run run_firefox
) included in the package.json file to run the Firefox extension in a separate instance without interfering with the production extension installed in your browser.
Printing debug data to test logs can be done using special Debug
class:
https://github.com/FlowCrypt/flowcrypt-browser/tree/master/extension/js/common/platform/debug.ts#L7
In order for npm run-script build
to work you have to:
-
Upgrade
bash
to v4 or higher and make the new version default: https://www.shell-tips.com/mac/upgrade-bash/ -
Install GNU
cp
util and make it default: https://stackoverflow.com/a/40431200/3049064