Skip to content

Commit

Permalink
enable support for "zstd" local store/db compression
Browse files Browse the repository at this point in the history
TODO: At some point, change default compression method.
  • Loading branch information
vladimiry committed May 26, 2022
1 parent 05fe568 commit 8d8a4b9
Show file tree
Hide file tree
Showing 21 changed files with 1,221 additions and 523 deletions.
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node-linker = hoisted
node-linker=hoisted
strict-peer-dependencies=false
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ The [reproducible builds](https://en.wikipedia.org/wiki/Reproducible_builds) ide
- On `Linux`: `python`, `make` and a C/C++ compiler toolchain, like `GCC` are most likely already installed. Besides [keytar](https://github.com/atom/node-keytar) needs `libsecret` library to be installed.
- On `macOS`: `python` and [Xcode](https://developer.apple.com/xcode/download/) need to be installed. You also need to install the `Command Line Tools` via Xcode, can be found under the `Xcode -> Preferences -> Downloads` menu.
- ProtonMail's [WebClient](https://github.com/ProtonMail/WebClient) requires addition environment setup if you run Windows, [see](https://github.com/ProtonMail/proton-shared/wiki/setup-windows).
- Make sure you have [Rust](https://www.rust-lang.org/) installed on the system.
- [Clone](https://help.github.com/articles/cloning-a-repository/) this project to your local device. If you are going to contribute, consider cloning the [forked](https://help.github.com/articles/fork-a-repo/) into your own GitHub account project.
- Install [pnpm](https://pnpm.io/installation).
- Install dependencies running `pnpm install --frozen-lockfile` (setting `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1` environment variable might speed up the process).
Expand Down
1 change: 1 addition & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ files:
compression: normal
asar: true
asarUnpack:
- 'electron-main/**/*.node'
- '**/node_modules/desktop-idle/**/*'
- '**/node_modules/keytar/**/*'
- '**/node_modules/msgpackr-extract/**/*'
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"app:dist": "npm-run-all lint build assets build:electron-builder-hooks clean:prebuilds",
"build": "npm-run-all build:electron-main build:electron-preload build:web",
"build:dev": "cross-env NODE_ENV=development npm-run-all build",
"build:electron-main": "npm-run-all scripts/code-generation/electron-main build:electron-main:compile",
"build:electron-main": "npm-run-all scripts/code-generation/electron-main build:electron-main:compile:zstd-native build:electron-main:compile",
"build:electron-main:compile:zstd-native": "pnpm run --filter zstd-native build",
"build:electron-main:compile": "pnpm run webpack:shortcut -- --config ./webpack-configs/electron-main.ts",
"build:electron-main:dev": "cross-env NODE_ENV=development npm-run-all build:electron-main",
"build:electron-main:watch": "cross-env WEBPACK_ENV_WATCH=1 npm-run-all build:electron-main",
Expand Down Expand Up @@ -197,6 +198,7 @@
"ngx-bootstrap": "8.0.0",
"ngx-color-picker": "12.0.1",
"node-libs-browser": "2.2.1",
"node-loader": "2.0.0",
"npm-run-all2": "5.0.2",
"oboe": "2.1.5",
"os-locale": "6.0.2",
Expand Down
Loading

0 comments on commit 8d8a4b9

Please sign in to comment.