- 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:
+5
-9
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user