Skip to content

v0.2.5 — In-app update check

Choose a tag to compare

@ethemdemirkaya ethemdemirkaya released this 29 May 12:36
· 4 commits to main since this release

The app now tells you when a newer release is out, without you having to remember to come back to the GitHub page.

What's new

Auto update check on launch

On startup (and at most once every 12 hours, throttled via localStorage) the app fetches https://api.github.com/repos/ethemdemirkaya/lan-file-transfer/releases/latest and compares the tag against the running version. If something newer is on GitHub, a Fluent info MessageBar appears at the top of the main view:

LanBlaze 0.2.6 mevcut   [İndir]   [Sürüm notları]   [×]

  • Download / İndir opens the release page in your OS browser.
  • Release notes does the same; both target the same page.
  • × (Dismiss) stores that specific version in localStorage so the same banner doesn't reappear. The next time a different version ships, you'll see the banner again.

Manual check from Settings

Settings → Updates now has a "Check for updates" button with inline status ("Checking…" / "You're up to date") and the same install banner inline if something newer turns up.

Localized

All new strings translated for the 10 bundled UI languages.

Why not silent auto-install?

Tauri's auto-updater plugin (tauri-plugin-updater) does silent install but it needs:

  1. An ed25519 signer keypair (private key needs to live somewhere safe and survive lost laptops).
  2. Per-release .sig artefacts produced with TAURI_SIGNING_PRIVATE_KEY at build time.
  3. A hosted latest.json feed.

That's worth setting up properly alongside GitHub Actions and signed releases in 0.3.x. For now this lightweight "tell me when there's something new, take me to it" flow is zero-extra-dep, works today, and leaves the user in control.

Plumbing details

  • src/lib/tauri.ts: checkForUpdate(currentVersion) does the fetch + compareSemver and never throws (network/parse failures resolve to null).
  • New backend command open_external_url(url): cross-platform (cmd /c start on Windows, open on macOS, xdg-open on Linux), rejects anything that isn't http(s):// so a stray frontend invoke can't run arbitrary commands.
  • No new crates pulled in; the check uses the WebView's built-in fetch.

Install (Windows)

Download LanBlaze_0.2.5_x64-setup.exe below. Per-user install (no UAC). Installs over v0.2.x and keeps settings + trust list + history.

Changes since 0.2.4

  • feat(updates): check GitHub Releases on launch + Settings → Check now (936068a)