Files
sb-front/assets/_raster.mjs
T
ByungCheol cb5cf1f0bf
CI / build (push) Failing after 12m35s
feat: 브랜드 앱 아이콘 + Windows 데스크톱(Electron) 클라이언트
- 앱 아이콘: 브랜드(초록 #00bc7e + 흰 막대 차트) 적응형 아이콘 생성(@capacitor/assets)
  · assets/ 에 SVG 소스 + 전 해상도 mipmap 재생성, 적응형 XML 인셋 제거(배경 풀블리드)
- 데스크톱: Electron 로 dist 를 감싼 Windows 설치파일(.exe)
  · vite electron 모드(상대 base)·라우터 해시 히스토리·App 게이트 Electron 감지
  · webSecurity:false 로 file:// CORS 우회, 백엔드는 https://app.sblog.kr/api
  · scripts: build:electron / electron:dev / electron:build(electron-builder NSIS)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-07 16:20:55 +09:00

10 lines
337 B
JavaScript

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')
}