Package Details: tutanota-desktop 315.251204.0-1

Git Clone URL: https://aur.archlinux.org/tutanota-desktop.git (read-only, click to copy)
Package Base: tutanota-desktop
Description: The desktop client for Tutanota, the secure e-mail service.
Upstream URL: https://tuta.com/secure-email
Licenses: GPL-3.0-or-later
Submitter: yochananmarqos
Maintainer: yochananmarqos (ajgraves)
Last Packager: yochananmarqos
Votes: 32
Popularity: 0.77
First Submitted: 2020-03-03 17:27 (UTC)
Last Updated: 2025-12-04 16:03 (UTC)

Latest Comments

1 2 3 4 5 6 .. 9 Next › Last »

yochananmarqos commented on 2025-12-01 16:24 (UTC)

@npreining: Can't reproduce in a clean chroot.

npreining commented on 2025-12-01 11:53 (UTC) (edited on 2025-12-01 11:56 (UTC) by npreining)

It fails to build for me with

Build error: Error: Cannot detect repository by .git/config. Please specify "repository" in the package.json (https://docs.npmjs.com/files/package.json#repository).
    Please see https://electron.build/publish
    at getInfo (/home/norbert/.cache/yay/tutanota-desktop/src/tutanota/node_modules/app-builder-lib/src/publish/PublishManager.ts:564:13)
    at getResolvedPublishConfig (/home/norbert/.cache/yay/tutanota-desktop/src/tutanota/node_modules/app-builder-lib/src/publish/PublishManager.ts:573:18)
    at resolvePublishConfigurations (/home/norbert/.cache/yay/tutanota-desktop/src/tutanota/node_modules/app-builder-lib/src/publish/PublishManager.ts:456:16)
    at getPublishConfigs (/home/norbert/.cache/yay/tutanota-desktop/src/tutanota/node_modules/app-builder-lib/src/publish/PublishManager.ts:430:10)
    at getAppUpdatePublishConfiguration (/home/norbert/.cache/yay/tutanota-desktop/src/tutanota/node_modules/app-builder-lib/src/publish/PublishManager.ts:255:73)
    at /home/norbert/.cache/yay/tutanota-desktop/src/tutanota/node_modules/app-builder-lib/src/publish/PublishManager.ts:125:29
    at emitInternal (/home/norbert/.cache/yay/tutanota-desktop/src/tutanota/node_modules/app-builder-lib/src/util/asyncEventEmitter.ts:61:9)
    at AsyncEventEmitter.emit (/home/norbert/.cache/yay/tutanota-desktop/src/tutanota/node_modules/app-builder-lib/src/util/asyncEventEmitter.ts:66:28)
    at Packager.emitAfterPack (/home/norbert/.cache/yay/tutanota-desktop/src/tutanota/node_modules/app-builder-lib/src/packager.ts:334:5)
    at LinuxPackager.doPack (/home/norbert/.cache/yay/tutanota-desktop/src/tutanota/node_modules/app-builder-lib/src/platformPackager.ts:341:5)
==> ERROR: A failure occurred in build().
Aborting...

yochananmarqos commented on 2025-11-30 18:01 (UTC)

@sologhoul: Well, technically the sqlcipher extension is being built twice, but it works.

sologhoul commented on 2025-11-30 05:37 (UTC) (edited on 2025-11-30 05:37 (UTC) by sologhoul)

this builds for me:

diff --git a/PKGBUILD b/PKGBUILD
index bdbed97..d6184f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,14 @@
 # Co-Maintainer: Aaron J. Graves <linux@ajgraves.com>
 # Contributor: ganthern <https://github.com/ganthern>
 pkgname=tutanota-desktop
-pkgver=287.250602.0
+pkgver=315.251125.0
 pkgrel=1
 _emsdk_ver=3.1.59  ## Check ci/containers/linux-build.dockerfile for version
 pkgdesc="The desktop client for Tutanota, the secure e-mail service."
 arch=('x86_64')
 url="https://tuta.com/secure-email"
 license=('GPL-3.0-or-later')
+options=('!lto')
 depends=(
   'alsa-lib'
   'gtk3'
@@ -17,6 +18,7 @@ depends=(
 )
 makedepends=(
   'cargo'
+  'rust-wasm'
 #  'emscripten'  ## Fails to build with >=4.0.3
   'git'
   'nvm'
@@ -27,7 +29,7 @@ source=("git+https://github.com/tutao/tutanota.git#tag=$pkgname-release-$pkgver"
         'git+https://github.com/open-quantum-safe/liboqs.git'
         'git+https://github.com/emscripten-core/emsdk.git'
         "$pkgname.desktop")
-sha256sums=('77e187e4a382a9215d6fccf36355011a01f9e4a7b4105edccd23e0430bd1aa24'
+sha256sums=('9d7d5c6cdc92fcc1b4e5a51529463b3ab299586355fb9a59a335ef3f53952bd9'
             'SKIP'
             'SKIP'
             'SKIP'
@@ -59,11 +61,13 @@ prepare() {

   export RUSTUP_TOOLCHAIN=stable
   cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
+
+  cd node_modules/@signalapp/sqlcipher/deps/extension
+  cargo build --release --target x86_64-unknown-linux-gnu
 }

 build() {
   cd "${pkgname%-*}"
-  CFLAGS+=" -ffat-lto-objects"
   export npm_config_cache="$srcdir/npm_cache"
   export RUSTUP_TOOLCHAIN=stable
   _ensure_local_nvm

yochananmarqos commented on 2025-09-15 17:16 (UTC)

@archdub: I was just able to successfully build by adding the !makeflags option, however it fails to launch with a JavaScript error. I'm not sure if that's progress or not...

archdub commented on 2025-09-15 17:01 (UTC)

@yochananmarqos

On another computer I installed rust, rust-wasm and wasm-pack and did not have the wasm error. This is preferably to rustup, so I will change it for the computer where I had already built tutanota.

Again I had the gyp error and again I ran the command “makepkg -ei" and it worked again so now I have the latest version of tutanota in the two computers.

yochananmarqos commented on 2025-09-14 17:58 (UTC)

@archdub: Just FYI, to build with rust it requires rust-wasm and wasm-pack. Otherwise, as you noticed the dependencies will be resolved automatically with rustup.

remisc commented on 2025-09-14 17:57 (UTC)

@archdub

In a nutshell, xiota may be correct about the existence of a race condition

I can corroborate that point - I had trouble with the same reported build errors but was able to build it after purging all the build artifacts and rerunning without -j in my MAKEFLAGS

archdub commented on 2025-09-14 17:52 (UTC) (edited on 2025-09-14 17:53 (UTC) by archdub)

I managed to build the latest version of this app (308.250911.0).

First I got an error about wasm. After investigating I found a workaround: install rustup. This caused rust to be uninstalled. I also run one or two commands that the Arch wiki say we should for rustup (I forgot which). That solved for me the wasm error.

Then I got a gyp error. The error message was exactly the same as yochananmarqos got [1]. Inspired by a comment by xiota [2] I ran the command “makepkg -ei”. The build succeeded.

In a nutshell, xiota may be correct about the existence of a race condition, however I know nothing about gyp so I won't investigate further. I managed to build it and that is enough for me.

[1] “build log at the point of failure” in https://github.com/tutao/tutanota/issues/9217

[2] https://github.com/tutao/tutanota/issues/9217#issuecomment-3151546682