Commit graph

25 commits

Author SHA1 Message Date
nig
e57b9c7ff2 threaded sqlcipher
#5112
2023-09-22 12:09:18 +02:00
vaf
49449c426d Support Argon2id
Allow deriving keys with it if the server requests it, but do not use it
by default to create new keys.

tutadb#1559

Co-authored-by: @vitoreiji, @paw-hub, @charlag
2023-08-18 16:29:22 +02:00
nig
978d9780c2 fix linter errors for missing node: protocol
close #4367
2023-05-05 11:29:09 +02:00
ivk
a8564c77da [build] Make building packages faster
Building packages is a part of most build invocations. Our old approach
during dev builds was to

1. Invoke npm once to run build-packages
2. Invoke npm per each package to run tsc.

Unfortunately, npm is very slow. Additionally, the old approach was
leading to tsc re-checking some packages multiple times because of
dependencies between them. This would only worsen with time.

In our new approach we

1. invoke tsc only once
2. try to avoid invoking npm as much as possible

Unfortunately there is still one case where we invoke npx because we
can't be sure that the location of node_modules/.bin is stable as we
are sometimes used as a package. Without this we could reduce the time
even further.
2023-03-09 10:59:05 +00:00
nig
7cba629cb6 [desktop] use a nonbroken electron-updater version on each platform
5.3.0 couldn't handle windows machines with a restricted powershell.
6.0.0 fixed that, but the alpha that's currently available does not
work on linux because it's opening the child process wrong.
2023-01-30 10:20:44 +01:00
ivk
50b23ebd1b Run prettier on the whole project 2022-12-27 16:08:23 +01:00
jom
4162c65761 Implement password generator
We manually merged the contents of branch `password-generator-thesis`
onto a new branch, because the typescript migration changes broke the
mergeability of the existing implementation

#327
2022-07-21 14:54:04 +02:00
jom
1660ebaab1 Adapt to gift cards model change 2022-06-13 13:34:56 +02:00
ivk
6998fdbc33
[build] Run typecheck with better output 2022-05-27 16:17:01 +02:00
jom
ca177b74f5
Add framework for migrating offline database
When there is a model change on the server that would conflict with
the entities stored in the offline database, we need to do a migration
We generate some model diffs with the code generator and use them
for a compile-time check.

Co-authored-by: ivk <ivk@tutao.de>
2022-05-25 16:30:34 +02:00
ivk
e3fc4135be
Set initial EventBusClient state to Terminated, fix #4143
1. It only makes sense
2. It prevents reconnection attempts/indication before we log in
2022-05-17 16:06:47 +02:00
ivk
86e180b2c8
Cleanup/fixes after esbuild conversion 2022-05-11 11:44:43 +02:00
ivk
6980c847cb
[build] Changes after review 2022-05-10 17:56:48 +02:00
ivk
c86cfd6d71
[build] Cleanup build 2022-05-10 17:56:07 +02:00
ivk
1d829e9597
[build] esbuild: do not inline translations 2022-05-10 17:55:24 +02:00
ivk
458412795e
[build] esbuild for tests 2022-05-10 17:55:23 +02:00
ivk
3f7c080055
[build] esbuild for dev build 2022-05-10 17:53:21 +02:00
ivk
b0066f98ef
[build, desktop] Fix building better-sqlite3 on Windows, fix #4089
- Fix unpacking .node file form .asar
 - Update to correct build of better_sqlite3
 - Fix passing correct path to better_sqlite3
2022-05-05 18:00:59 +02:00
thp
63bb7de308 Always build packages when building tutanota
Use composite flag and incremental builds for packages
Add package dependencies as project references
2022-02-18 10:52:52 +01:00
thp
916ee1ed1d Refactor dist.js #3221
Split dist.js (desktop.js, webapp.js)
  Simplify command line interface for dist builds
  Extract utilities used from dist builds
  Extract fetching and publishing dictionaries into its own build step
  Extract signing installers into its own build step
  Extract .deb packaging and publishing into its own build step
  Add some documentation, verbosity and general improvements to the code
2022-02-18 10:52:52 +01:00
sas
7cb4828c56 Introduce persistent cache for desktop, close #3823 2022-02-15 09:54:54 +01:00
thp
de6465e28f [build] Do not forward 'clean' option with buildOpts. Fix #3841 2022-02-03 09:12:47 +01:00
ivk
253441b9ac Convert codebase to Typescript, close #3746 close #3594
Co-authored-by: jom <jom@tutao.de>
Co-authored-by: thp <thp@tutao.de>
Co-authored-by: vis <vis@tutao.de>
2022-01-07 16:21:07 +01:00
jom
7ae19fef25 [build] don't restart flow everytime after doing a clean build
reviewed with ivk
2021-11-10 13:35:54 +01:00
jom
c3de877fce [build] refactor make.js + android.js to modularise dev build 2021-11-09 09:23:59 +01:00