B1: alpha installers (NSIS, DMG), identifier com.tyrveil.lutra with data migration

- App identifier com.tyrveil.lutra (D26) in tauri.conf.json and
  rendezvous::APP_IDENTIFIER; a test keeps them equal.
- First normal start copies settings.json, recovery/ and tools/ once from
  the dev.lutra.desktop directories (staging dir + rename, logged, info
  notification); old directories stay untouched.
- Bundling on: per-user NSIS setup (English, German, Start menu, optional
  desktop shortcut, uninstaller) and DMG; `cargo xtask bundle` builds the
  platform's installer, joining the DMG backgrounds into a HiDPI TIFF on
  macOS. build.rs also writes icons/512x512.png for the .icns.
- Installer images from the banner, designed by Amy, generated by
  `cargo xtask installer-images` (assets/installer/, ASSETS.md rows);
  approved by Daniel.
- docs/install.md (SmartScreen, Gatekeeper, uninstall, data locations),
  README install section, architecture, development and macOS notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-10-31 21:48:15 +01:00
parent 071b2a5644
commit bd225d9e3a
22 changed files with 1367 additions and 17 deletions

View file

@ -40,8 +40,14 @@ pub const DIR_ENV: &str = "LUTRA_RENDEZVOUS_DIR";
/// main instance. The CLI looks for the rendezvous file there too.
pub const DATA_DIR_ENV: &str = "LUTRA_DATA_DIR";
/// The Tauri app identifier, the last part of the data directory.
pub const APP_IDENTIFIER: &str = "dev.lutra.desktop";
/// The Tauri app identifier, the last part of the data directory. It must
/// match `identifier` in `apps/lutra-desktop/tauri.conf.json`.
pub const APP_IDENTIFIER: &str = "com.tyrveil.lutra";
/// The placeholder identifier used before the alpha installers. The desktop
/// copies the user's files from its directories once (see the desktop's
/// `migrate` module).
pub const LEGACY_APP_IDENTIFIER: &str = "dev.lutra.desktop";
/// Random bytes in a token; the token is their lowercase hex form.
pub const TOKEN_BYTES: usize = 32;