sirakav / flowcrypt-browser

FlowCrypt Browser extension for Chrome and Firefox

Home Page:https://flowcrypt.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FlowCrypt - with comments disabled

What are we doing?

We are trying to disable comments that FlowCrypt adds to every message which look like this:

Version: FlowCrypt Email Encryption 8.4.2
Comment: Seamlessly send and receive encrypted email

Build with Docker

docker run --rm -it -v ${PWD}:/app --workdir /app --entrypoint bash node:lts-bullseye

yarn
yarn build

Install on Chrome

cd build/chrome-consumer
zip -r flowcrypt.zip .

Then go to chrome://extensions/ and load the extension from the zip file.

------ ORIGINAL README BELOW ------

FlowCrypt: Encrypt Gmail with PGP

Users

Get FlowCrypt browser extension at: https://flowcrypt.com/download

Developers

Mock tests: Mock tests

Live tests: Live Tests

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. First, install tooling:

$ cd some/folder/flowcrypt-browser
$ npm install

To build the project (for now Linux and Mac only)

$ npm run-script build

> flowcrypt-browser@5.9.7 build /home/luke/git/flowcrypt-browser
> gulp

[02:42:04] Using gulpfile ~/git/flowcrypt-browser/gulpfile.js
[02:42:04] Starting 'default'...
[02:42:04] Starting 'flush'...
[02:42:04] Finished 'flush' after 62 ms
[02:42:04] Starting 'transpileProjectTs'...
[02:42:04] Starting 'copySourceFiles'...
[02:42:04] Starting 'copyVersionedManifest'...
[02:42:05] Finished 'copyVersionedManifest' after 199 ms
[02:42:05] Finished 'copySourceFiles' after 557 ms
[02:42:12] Finished 'transpileProjectTs' after 7.57 s
[02:42:12] Starting 'chromeBuildSpacesToTabs'...
[02:42:12] Finished 'chromeBuildSpacesToTabs' after 4.55 ms
[02:42:12] Starting 'copyChromeToFirefox'...
[02:42:12] Finished 'copyChromeToFirefox' after 323 ms
[02:42:12] Starting 'copyChromeToFirefoxEditedManifest'...
[02:42:12] Finished 'copyChromeToFirefoxEditedManifest' after 10 ms
[02:42:12] Finished 'default' after 7.97 s

Now you can find your built project in build/chrome-consumer and build/firefox-consumer

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

Note for Mac OS users

In order for npm run-script build to work you have to:

  1. Upgrade bash to v4 or higher and make the new version default: https://www.shell-tips.com/mac/upgrade-bash/

  2. Install GNU cp util and make it default: https://stackoverflow.com/a/40431200/3049064

Other guides

About

FlowCrypt Browser extension for Chrome and Firefox

https://flowcrypt.com

License:Other


Languages

Language:TypeScript 53.4%Language:JavaScript 41.6%Language:CSS 2.4%Language:HTML 2.3%Language:Shell 0.1%Language:Python 0.1%