Commit Graph

8 Commits

Author SHA1 Message Date
caoqianming cef93d9364 Bundle WebView2Loader.dll so GNU-built installers run on clean machines
The GNU toolchain does not static-link WebView2Loader (unlike MSVC), so
the app failed to launch with a missing-DLL error. Ship the x64 loader as
a bundle resource installed next to the exe.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 08:09:06 +08:00
caoqianming 3befdd4874 Rewrite Gitea download/page host to external base in update check
Gitea ROOT_URL points to an internal IP, so release/asset URLs returned
by the API are not reachable externally. Rewrite their host to the same
external base the app queries. Also prefer the .exe (NSIS) asset.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 16:53:09 +08:00
caoqianming 8320432789 Add lightweight update check via Gitea releases; bump to 0.2.0
- check_update command: query Gitea releases/latest, compare versions
  (404 = no release yet -> treated as up to date), return notes + asset URL
- open_external command to open the download page / installer
- "检查更新" button in the top bar (manual check only)
- docs/发布与更新.md: release & update workflow
- bump app version to 0.2.0 (tauri.conf / package.json / Cargo)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 16:33:57 +08:00
caoqianming fd2dfbdfb8 Add analysis judgment, history storage, and report/Excel export
Calculation (calculator/domain):
- Material types (main body / hollow / decorative) with tiered limits
- Validity judgment (37 Bq/kg exemption + Ur(IRa) k=2 threshold)
- Critical-value verdict via true-value interval vs limit (pass/fail/
  need-more), decorative A/B/C cascade
- GUM expanded uncertainty U and analytical interval P2.5/P97.5
- Single-measurement support (n=1, uA=0); fix Type-A term to include a

Persistence & export (src-tauri):
- SQLite history via rusqlite (save/list/get/delete, filtered list)
- Excel export via rust_xlsxwriter with native Save-As dialog
- Report view (A4) with print-to-PDF

UI:
- Tabs (calculate / history), save-to-history, report preview
- Logo-matched navy + gold theme, widened layout, density polish

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 15:55:55 +08:00
caoqianming ef6c4f3f29 Add Android and iOS app icons
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 15:03:21 +08:00
caoqianming 88d22ee406 Hide console window in release build
Add windows_subsystem = "windows" so the packaged app launches without a
console black box (debug builds keep the console for logs).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 11:08:20 +08:00
caoqianming 3996a85eb6 Add app icon and enable Windows installer packaging
- Generate radiation-trefoil app icon (ISO proportions) via app-icon.svg
- Enable bundling with NSIS + MSI targets
- Use English productName so WiX/MSI builds succeed

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 10:14:12 +08:00
caoqianming 5cae20cd58 Initial commit 2026-05-15 13:50:27 +08:00