fix(desktop): generate ICO without 512px (NSIS expects <=256) — use 256/128/64/32 sources only
This commit is contained in:
parent
0f62936146
commit
9008fe5c30
1 changed files with 4 additions and 4 deletions
|
|
@ -9,10 +9,11 @@ async function fileExists(p) {
|
|||
|
||||
async function main() {
|
||||
const root = path.resolve(process.cwd(), 'src-tauri', 'icons')
|
||||
// Inclua apenas tamanhos suportados pelo NSIS (até 256px).
|
||||
// Evite 512px para não gerar ICO inválido para o instalador.
|
||||
const candidates = [
|
||||
'icon-512.png',
|
||||
'icon-256.png',
|
||||
'128x128@2x.png',
|
||||
'icon-256.png', // preferencial
|
||||
'128x128@2x.png', // alias de 256
|
||||
'icon-128.png',
|
||||
'icon-64.png',
|
||||
'icon-32.png',
|
||||
|
|
@ -35,4 +36,3 @@ async function main() {
|
|||
}
|
||||
|
||||
main().catch((err) => { console.error(err); process.exit(1) })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue