From 0d83cdab965782689dacc2a8d4470f03e2888872 Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sun, 11 Oct 2026 06:43:49 +0000 Subject: [PATCH] fix(desktop): check the update's signature against the repository's key at build time tauri build verifies the updater signature against the config's pubkey, which is empty in tauri.conf.json, so a build with the update key failed with "Missing comment in public key". The Desktop workflow now passes LENS_UPDATER_PUBKEY in the build config too. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_014VrJQhkYVDyhgVQcok4neG --- .github/workflows/desktop.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/desktop.yml b/.github/workflows/desktop.yml index 8ddbc44f0..b02f39d9e 100644 --- a/.github/workflows/desktop.yml +++ b/.github/workflows/desktop.yml @@ -126,8 +126,8 @@ jobs: if [ -n "$TAG" ]; then config="$(echo "$config" | python3 -c 'import json,sys; c=json.load(sys.stdin); c["version"]=sys.argv[1].lstrip("v"); print(json.dumps(c))' "$TAG")" fi - if [ "${LENS_UPDATES:-0}" = 1 ]; then # the signed .app.tar.gz the updater downloads - config="$(echo "$config" | python3 -c 'import json,sys; c=json.load(sys.stdin); c["bundle"]["createUpdaterArtifacts"]=True; print(json.dumps(c))')" + if [ "${LENS_UPDATES:-0}" = 1 ]; then # the signed .app.tar.gz the updater downloads, checked against the key + config="$(echo "$config" | python3 -c 'import json,os,sys; c=json.load(sys.stdin); c["bundle"]["createUpdaterArtifacts"]=True; c["plugins"]={"updater":{"pubkey":os.environ["LENS_UPDATER_PUBKEY"].strip()}}; print(json.dumps(c))')" fi npx tauri build --config "$config" --bundles app,dmg mkdir -p ../dist/desktop