feat: config 파일(.zip) 입력/다운로드 지원 (v0.4.27)
관리자 편집기에서 맵 파일과 서버 파일 사이에 "config 파일 (.zip)" 필드를 추가하고, 간편설치기가 /file/configs/<name> zip 을 받아 게임 폴더(.mc_custom) 루트에 그대로 풀도록 했다(zip 안의 config/ 가 .mc_custom/config/ 로 배치). - PackDefinition.configPath 추가 + store 정규화/기본값 - 설치기 downloadConfigZip 헬퍼 + client:install 흐름 반영 - 편집기 필드, op 저장 파싱, 로케일 키(server/installer) - docs/installer.md 다운로드 단계 갱신, file/configs/ 폴더 생성 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,7 @@ export function defaultPackDefinition(name: string): PackDefinition {
|
||||
clientRecommendedRam: 4096,
|
||||
recommendedJdk: DEFAULT_JDK_MAJOR,
|
||||
mapPath: '',
|
||||
configPath: '',
|
||||
serverPath: ''
|
||||
}
|
||||
}
|
||||
@@ -142,6 +143,7 @@ export function normalizePackDefinition(input: Partial<PackDefinition> & Record<
|
||||
clientRecommendedRam: clampNumber(input.clientRecommendedRam, fallback.clientRecommendedRam),
|
||||
recommendedJdk: normalizeRecommendedJdk(input.recommendedJdk),
|
||||
mapPath: sanitizeZipFileName(input.mapPath),
|
||||
configPath: sanitizeZipFileName(input.configPath),
|
||||
serverPath: sanitizeZipFileName(input.serverPath)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user