Commit graph

22 commits

Author SHA1 Message Date
ivk
fba2b284ec [desktop] Use @signalapp/sqlcipher fork for db
Co-authored-by: paw <paw-hub@users.noreply.github.com>
2025-06-04 10:37:52 +02:00
ivk
af15d2383d
[ci] Fix prebuilding win32 modules
getNativeLibrary.js only works with node-gyp deps
2025-01-13 14:06:21 +01:00
ivk
2ed48135a8
Replace esbuild with Rolldown
- switch desktop build to esm
 - convert mithril to esm
 - run worker as esm module
 - fix dependency from DesktopAlarmScheduler to calendar app
 - switch napi-rs cli to 3.0
 - fix mimimi imports
 - remove hacky method on generated dispatcher
 - refactor native rollup plugins

 Co-authored-by: bir <bir@tutao.de>
2025-01-13 10:05:18 +01:00
Kinan
bbf81a95b4 build node-mimimi and sdk for the desktop client
Co-authored-by: map <mpfau@users.noreply.github.com>
Co-authored-by: nig <nig@tutao.de>
Co-authored-by: kitsugo <hayashi.jiro@kitsugo.com>
2025-01-02 16:52:08 +01:00
ivk
a42907e55a [build] Add type checking to buildSrc
It isn't invoked automatically anywhere but the editors should pick it
up and it can also be run manually.

It also fixes few little issues, e.g. getPrebuiltNativeModuleForWindows
was getting called with the right arguments.
2024-08-06 16:00:04 +02:00
ivk
3bf53aa5c2 [ci] Use cached better-sqlite3 in github actions 2023-12-01 12:41:55 +01:00
jat
8096e3ed6b Add support for universal architecture on macOS
`electron-builder` has undocumented support for building universal
binaries with `electron/universal`.
It's mentioned in `electron-builder`'s change logs & in
/packages/app-builder-lib/src/macPackager.ts#L109 inside
`electron-builder`'s repo.
2023-11-27 13:37:36 +00:00
jat
38a70be346 Fix desktop script building both x86_64 and arm64 at the same time
Added a new flag `-a` which allows the developer to set the architecture
of the built client. It causes an error when an unsupported combination
of platform & architecture is used. By default, it uses the architecture
the installed node binary uses.
2023-11-27 13:37:36 +00:00
nig
e60e78c9c4 move dist build to just ./build 2023-10-18 12:12:10 +02:00
nig
978d9780c2 fix linter errors for missing node: protocol
close #4367
2023-05-05 11:29:09 +02:00
ivk
50b23ebd1b Run prettier on the whole project 2022-12-27 16:08:23 +01:00
ivk
6998fdbc33
[build] Run typecheck with better output 2022-05-27 16:17:01 +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
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
77ebd27c91 [build] Fix running npm ls on Windows
Shell is needed to find npm
2022-03-09 16:02:47 +01:00
ivk
0102eec4b1 [build] Add status to getInstalledModuleVersion output 2022-03-09 15:07:23 +01:00
ivk
350d522533 [build] Fixes for admin client
1. Change getVersion() in nativeLibraryProvider to handle curious
`npm list` behavior.
2. Reorganize rollup plugins so that admin client can import our helper
plugins without importing rollup plugins from node_modules. This makes
it more resilient when we link against local tutanota-3 (libs hoisted
to upper level will not be found across the symlink).
3. Change LaunchHtml to not rely on mithril for the same reason.
2022-03-08 12:00:01 +01:00
jom
591554aa51 [build] Build better-sqlite3 on windows during Jenkins CI
This commit not only sets up the build for windows on jenkins,
it also consolidates how we get prebuilt binaries for native modules i.e. keytar and better-sqlite3
and generally has some refactorings
2022-03-07 10:26:06 +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