feat: 앱 아이콘·파비콘을 '돈돼지' 이미지로 변경
CI / build (push) Failing after 10m56s

- piggy-fg.png(투명 전경)에서 icon-foreground/background(금색)/only 합성
- @capacitor/assets generate --android 로 안드로이드 런처/적응형 아이콘 재생성
- 파비콘: public/favicon.png·apple-touch-icon.png 생성, index.html 갱신(구 logo.svg→png)
- PC(Electron) 설치 아이콘은 icon-only.png 사용(설치파일 재빌드 시 반영)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-27 15:52:11 +09:00
parent 0eb3eaaa67
commit 4e4c28bafe
34 changed files with 19 additions and 16 deletions
+5 -9
View File
@@ -1,9 +1,5 @@
import sharp from 'sharp'
import { readFileSync } from 'node:fs'
const files = ['icon-only', 'icon-foreground', 'icon-background']
for (const f of files) {
const svg = readFileSync(`assets/${f}.svg`)
await sharp(svg, { density: 384 }).resize(1024, 1024).png().toFile(`assets/${f}.png`)
console.log('wrote assets/' + f + '.png')
}
// 앱 아이콘은 이제 '돈돼지' 래스터 이미지(assets/piggy-fg.png) 기반입니다.
// 재생성: piggy-fg.png → sharp 합성으로 icon-foreground/background/only.png 만든 뒤
// `npx @capacitor/assets generate --android` 로 안드로이드 아이콘 생성.
// (구 SVG 래스터화는 더 이상 사용하지 않음 — 실행해도 PNG 를 덮어쓰지 않도록 비활성화)
console.log('skip: icons are raster (piggy). use piggy-fg.png + @capacitor/assets generate')
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 477 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 662 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB