Document NSIS icon regeneration steps
This commit is contained in:
parent
c26cb140ae
commit
eff5e2bdcf
1 changed files with 16 additions and 0 deletions
16
docs/DEV.md
16
docs/DEV.md
|
|
@ -137,6 +137,22 @@ pnpm -C apps/desktop tauri build
|
||||||
|
|
||||||
Artefatos: `apps/desktop/src-tauri/target/release/bundle/`.
|
Artefatos: `apps/desktop/src-tauri/target/release/bundle/`.
|
||||||
|
|
||||||
|
#### Ícone do instalador (NSIS)
|
||||||
|
|
||||||
|
- O Windows espera que `apps/desktop/src-tauri/icons/icon.ico` contenha sprites em 16, 24, 32, 48, 64, 128 e 256 px, todos com fundo transparente. Sem esses tamanhos o Explorer gera uma miniatura reduzida com bordas acinzentadas.
|
||||||
|
- Para atualizar o ícone a partir do `icon-512.png`, execute:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd apps/desktop/src-tauri
|
||||||
|
python3 - <<'PY'
|
||||||
|
from PIL import Image
|
||||||
|
img = Image.open("icons/icon-512.png")
|
||||||
|
img.save("icons/icon.ico", sizes=[(16,16),(24,24),(32,32),(48,48),(64,64),(128,128),(256,256)])
|
||||||
|
PY
|
||||||
|
```
|
||||||
|
|
||||||
|
- Depois de regerar `icon.ico`, faça o commit e rode novamente `pnpm -C apps/desktop tauri build` para empacotar o instalador com o ícone correto.
|
||||||
|
|
||||||
### Atualizações OTA
|
### Atualizações OTA
|
||||||
|
|
||||||
1. Gere chaves (`pnpm tauri signer generate`).
|
1. Gere chaves (`pnpm tauri signer generate`).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue