1 Commits

Author SHA1 Message Date
dfb7acba2f installer: use 128x128 launcher profile icon (correct spec)
마인크래프트 런처 사용자 지정 설치 아이콘 규격은 128x128 PNG 고정이다
(minecraft.wiki/w/Launcher). 64x64/256x256 등 규격과 다른 크기는 런처가
무시하고 기본 아이콘(화로)으로 폴백한다. ICON_SIZE 를 128 로 맞춰 음악
아이콘이 실제로 표시되게 한다. v0.3.8.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-06-07 23:04:34 +09:00
3 changed files with 8 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "minecraft-music-quiz-installer", "name": "minecraft-music-quiz-installer",
"version": "0.3.7", "version": "0.3.8",
"description": "마인크래프트 음악퀴즈 간편설치기 + 관리 사이트", "description": "마인크래프트 음악퀴즈 간편설치기 + 관리 사이트",
"main": "dist/installer/main.js", "main": "dist/installer/main.js",
"scripts": { "scripts": {

View File

@@ -9,9 +9,10 @@
// 포함되지 않아서, 런타임에 그 파일을 읽을 수 없다. 대신 빌드(개발) 시점에 // 포함되지 않아서, 런타임에 그 파일을 읽을 수 없다. 대신 빌드(개발) 시점에
// 이 스크립트를 돌려 PNG 를 소스 코드에 인라인한다. // 이 스크립트를 돌려 PNG 를 소스 코드에 인라인한다.
// //
// 프로필 아이콘은 작은 타일로 렌더링되므로 64x64 로 다운스케일해서 박는다. // 마인크래프트 런처의 사용자 지정 설치 아이콘 규격은 "128x128 PNG" 로
// 원본 256x256 (~44KB base64) 을 그대로 쓰면 data URL 이 지나치게 커져 // 고정돼 있다(https://minecraft.wiki/w/Launcher). 이 규격과 다른 크기
// 일부 런처에서 아이콘을 렌더링하지 못하고 기본 아이콘(화로)으로 폴백한다. // (예: 원본 256x256)를 주면 런처 아이콘을 무시하고 기본 아이콘(화로)으로
// 폴백한다. 그래서 build/icon.png 를 정확히 128x128 로 리사이즈해서 박는다.
// exe 아이콘(build/icon.ico, build/icon.png)은 256x256 그대로 둔다. // exe 아이콘(build/icon.ico, build/icon.png)은 256x256 그대로 둔다.
'use strict' 'use strict'
@@ -24,7 +25,7 @@ const repoRoot = path.resolve(__dirname, '..')
const pngPath = path.join(repoRoot, 'build', 'icon.png') const pngPath = path.join(repoRoot, 'build', 'icon.png')
const tsPath = path.join(repoRoot, 'src', 'installer', 'launcherIcon.ts') const tsPath = path.join(repoRoot, 'src', 'installer', 'launcherIcon.ts')
const ICON_SIZE = 64 const ICON_SIZE = 128
async function main() { async function main() {
const buf = await sharp(pngPath) const buf = await sharp(pngPath)

File diff suppressed because one or more lines are too long