l-build-tauri-app
Build the Tauri app and install to /Applications. Use when: (1) User says 'build app', 'rebuild app', 'install app', 'l-build-tauri-app', (2) User wants to test changes in the real Tauri .app bundle, (3) After making frontend or Rust changes that need verification in the desktop app.
Build Tauri App & Install to /Applications
Build the zpaper Tauri app, verify the build, and install to /Applications.
Workflow
Step 1: Clean Cargo cache
Cargo may cache stale frontend assets. Always clean the crate first:
cd blog && cargo clean -p zpaper
Step 2: Build
pnpm app:blog:build
This runs cd blog && cargo tauri build which produces:
blog/src-tauri/target/release/bundle/macos/zpaper.appblog/src-tauri/target/release/bundle/dmg/zpaper_*_aarch64.dmg
Step 3: Kill, remove old, install fresh
CRITICAL: cp -rf does NOT reliably update macOS .app bundles. Always move old bundle away first.
killall zpaper 2>/dev/null
sleep 1
mv /Applications/zpaper.app /tmp/zpaper-old-$$.app 2>/dev/null
cp -R blog/src-tauri/target/release/bundle/macos/zpaper.app /Applications/zpaper.app
Step 4: Verify binary timestamp
stat -f "%Sm" /Applications/zpaper.app/Contents/MacOS/zpaper
Confirm the timestamp is from just now. If stale, the copy failed.
Step 5: Launch
open /Applications/zpaper.app
Report the timestamp and that the app is launched.