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>
This commit is contained in:
caoqianming 2026-06-09 10:14:12 +08:00
parent 0c06d51c4a
commit 3996a85eb6
19 changed files with 24 additions and 4 deletions

14
src-tauri/app-icon.svg Normal file
View File

@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#1f2a44"/>
<stop offset="1" stop-color="#0b1220"/>
</linearGradient>
</defs>
<rect x="0" y="0" width="1024" height="1024" rx="200" ry="200" fill="url(#bg)"/>
<circle cx="512" cy="512" r="395" fill="none" stroke="#facc15" stroke-width="22" opacity="0.35"/>
<g fill="#facc15">
<circle cx="512" cy="512" r="70"/>
<path d="M 687.00 208.89 A 350 350 0 0 0 337.00 208.89 L 459.50 421.07 A 105 105 0 0 1 564.50 421.07 Z M 162.00 512.00 A 350 350 0 0 0 337.00 815.11 L 459.50 602.93 A 105 105 0 0 1 407.00 512.00 Z M 687.00 815.11 A 350 350 0 0 0 862.00 512.00 L 617.00 512.00 A 105 105 0 0 1 564.50 602.93 Z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 836 B

BIN
src-tauri/icons/128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
src-tauri/icons/32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
src-tauri/icons/64x64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
src-tauri/icons/icon.icns Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 25 KiB

BIN
src-tauri/icons/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -1,6 +1,6 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "建筑材料放射性判定",
"productName": "Building Material Radioactivity",
"version": "0.1.0",
"identifier": "com.tcjs.ceramic-radioactivity",
"build": {
@ -24,8 +24,14 @@
}
},
"bundle": {
"active": false,
"targets": "all",
"icon": []
"active": true,
"targets": ["nsis", "msi"],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
}
}