published fresh until

Electron to Tauri 2: update security during migration?

Summary As of November 2026, port the native bridge and rehearse the Electron-to-Tauri installer handoff before retiring the old feed; subsequent Tauri 2 releases use signed updater artifacts configured with bundle.createUpdaterArtifacts

Not for Tauri versus egui or Slint for a Rust desktop app, see tauri-egui-slint-gpui-iced-or-dioxus-for-rust-desktop-apps

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Port one native flow into Tauri 2, then prove both the Electron-to-Tauri handoff and a subsequent signed Tauri update before switching distribution.

Do first: inspect the Electron app's package.json and updater configuration

1. Record every supported operating system, architecture, installer type, app identifier, user-data directory and old updater feed. Back up a disposable profile. Keep the Electron release available during the transition. 2. Separate browser UI from preload/main-process APIs and Node dependencies. Reuse the UI; replace each bridge operation with a narrow Tauri command or plugin. Prototype the hardest native operation before porting the rest. Tauri documents commands and invocation and window capabilities. 3. Create the Tauri app using the official project setup. Match frontend build output to its configuration. Explicitly implement profile import, deep links, file associations and single-instance behaviour where your app uses them; treat these as acceptance checks, not automatic migration features. 4. Add the updater with pnpm tauri add updater; initialise its Rust plugin. If your UI will relaunch the app, add the process plugin too with pnpm tauri add process. Grant the relevant window updater:default and process:allow-restart, scoped to that trusted UI. See updater setup and process setup. 5. Generate an updater signing key through the documented signer workflow. Keep the private key in the release system; put only the public key in app configuration. Configure bundle.createUpdaterArtifacts as true and an HTTPS updater endpoint. Build signed artifacts, then upload the final artifact, signature and manifest together. 6. Implement a visible check/install action using the updater API:

import { check } from '@tauri-apps/plugin-updater';
import { relaunch } from '@tauri-apps/plugin-process';

export async function installAvailableUpdate() {
  const update = await check();
  if (!update) return false;
  // Call after the user accepts; save work before installation.
  await update.downloadAndInstall();
  await relaunch();
  return true;
}

Call the function from an error-handled UI action. Scheduling checks, progress feedback and retry policy remain application work. Windows installation can exit the app before the final relaunch call. 7. Design a separate bridge for old Electron clients. Inspect whether they use Electron's built-in updater or another updater package. Its feed and installer contract determine how the first Tauri installer reaches users; merely changing its URL to Tauri JSON is not a migration plan. Electron's updater reference documents platform-specific update mechanisms. If a safe installer bridge is unavailable, ship an Electron release that directs users through an explicit manual replacement. 8. Rehearse on every supported OS/architecture: installed Electron → first Tauri release → higher-version Tauri release. Check user data, launch shortcuts and uninstall behaviour. Test interrupted downloads, invalid signatures, no update, and a user returning on an old Electron build. Retain old feeds until your declared legacy support window ends.

What changes at the boundary

Electron assumptionTauri migration requirement
Main/preload Node APIs are availableReplace their behaviour with commands/plugins; a Node sidecar is an additional deployment decision.
Existing updater understands the next installerEstablish a per-platform bridge or a manual replacement path.
New binary finds the old profileWrite and test an explicit import/mapping strategy.
Update verification equals platform code signingPlan both updater signatures and OS signing requirements; verify the final distributed bytes.

This is a cross-runtime migration from an existing Electron installation, not an upgrade through Tauri prereleases. There is no shared supported-version sequence to apply mechanically.

Versions, costs and limits — checked 2026-10-28

As of November 2026, the linked stable Tauri CLI release is 2.12.6 (released 2026-11-18); that is not a version number for every crate/plugin. Pin the actual resolved stable components in the lockfiles. Tauri offers an MIT licence, and Electron's licence is MIT. Neither framework's licence supplies hosting, signing certificates or release engineering at no cost.

The updater requires signatures and cannot disable their verification. Its manifest signature must contain the signature text, not a signature URL. A static feed needs a version and complete URL/signature pairs for each target. Current updater docs require Rust at least 1.90. These are documented updater constraints, checked 2026-10-28.

Recommendation by constraint

PathWinsLosesPick this if
Retain ElectronSolo developer with substantial Node integrations and a working release systemA measured distribution constraint justifies a rewriteDelivery continuity matters more than a demonstrated migration benefit.
Port to Tauri 2Small team with a bounded native bridge and a tested handoffIntegrations or legacy installer replacement remain uncertainThe prototype and both update hops pass on your actual target systems.
Enterprise staged cutoverA controlled cohort can validate profile and installer transitionsYou cannot sustain two release paths temporarilyRelease ownership and recovery are explicit before rollout.

Public evidence

yiliang114, Qwen Code issue 9074, 2026-08-13: “The Electron-to-Tauri desktop update bridge currently covers macOS only.” The report describes Windows/Linux clients remaining on legacy manifests and Windows install/uninstall risks. It is a concrete migration failure report, not proof that this recipe has been executed for your app.

Prompt for the agent

Inventory our Electron native APIs, profile paths, updater package and supported installers. Port one flow. Propose the legacy-client bridge separately from the Tauri feed and produce an OS-by-OS rehearsal checklist. Do not retire the old feed or release a binary without review.

Mistakes and Limits

Do not treat Tauri 1's updater compatibility mode as Electron compatibility. Do not assume a successful development build proves signed distribution. No application was ported, signed or updated here; profile compatibility and installer bridges remain application-specific. This does not audit intervening Electron releases or upgrade an old Tauri app.

Started from a post by @Tauri contributors, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Electron to Tauri 2: update security during migration?
Summary: As of November 2026, port the native bridge and rehearse the Electron-to-Tauri installer handoff before retiring the old feed; subsequent Tauri 2 releases use signed updater artifacts configured with `bundle.createUpdaterArtifacts`
Copy for agent
get the whatworks thread electron-to-tauri-2-migration-with-signed-auto-updates and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread electron-to-tauri-2-migration-with-signed-auto-updates
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks