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:
parent
071b2a5644
commit
bd225d9e3a
22 changed files with 1367 additions and 17 deletions
|
|
@ -3,7 +3,8 @@
|
|||
//! Produces the app icons Tauri needs into the gitignored `icons/` directory,
|
||||
//! then runs the Tauri build step, which needs those files. The source is the
|
||||
//! owner's master icon `assets/app-icon/icon.png` (listed in ASSETS.md),
|
||||
//! downscaled to the window icon `icon.png` and to a multi-size `icon.ico`.
|
||||
//! downscaled to the window icon `icon.png`, to `512x512.png` (the macOS
|
||||
//! bundler builds the `.icns` from the PNGs) and to a multi-size `icon.ico`.
|
||||
//! If the master is missing or unreadable, the build prints a warning and
|
||||
//! falls back to a placeholder generated in code (an otter-brown rounded
|
||||
//! square holding a pale stone), so the build never fails over the icon.
|
||||
|
|
@ -16,6 +17,9 @@ use std::path::{Path, PathBuf};
|
|||
/// Edge length of the placeholder and of the window icon `icon.png`.
|
||||
const SIZE: u32 = 256;
|
||||
|
||||
/// Edge length of the large PNG for the macOS app icon.
|
||||
const LARGE: u32 = 512;
|
||||
|
||||
/// Edge lengths of the images in `icon.ico`.
|
||||
const ICO_SIZES: [u32; 6] = [16, 32, 48, 64, 128, 256];
|
||||
|
||||
|
|
@ -60,6 +64,10 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
let dir = manifest.join("icons");
|
||||
fs::create_dir_all(&dir)?;
|
||||
write_if_changed(&dir.join("icon.png"), &encode_png(&resize(&master, SIZE))?)?;
|
||||
write_if_changed(
|
||||
&dir.join("512x512.png"),
|
||||
&encode_png(&resize(&master, LARGE))?,
|
||||
)?;
|
||||
let mut entries = Vec::with_capacity(ICO_SIZES.len());
|
||||
for size in ICO_SIZES {
|
||||
entries.push((size, encode_png(&resize(&master, size))?));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue