data: switch to recovered game DB and refresh cards and charts
Publish GitHub Pages output / publish (push) Successful in 44s

This commit is contained in:
2026-09-29 22:48:08 +09:00
parent 5783072b12
commit 07b98db520
1259 changed files with 11228 additions and 6809 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
import { createDecipheriv, createHash } from 'node:crypto';
import { mkdir, writeFile } from 'node:fs/promises';
import path from 'node:path';
import { prepareHolodoriDbSource } from './holodoridb-source.mjs';
import { prepareGameDbSource, sourceMetadata } from './game-db-source.mjs';
import { susScoreWeight } from './sus-score-weight.mjs';
const OCTO_API_KEY = 'B46OtKlGGHoz6sxbOWDe3VUvBsagXxr5av38IQIKUKo=';
@@ -101,8 +101,8 @@ const collectAll = requested.length === 1 && requested[0] === '--all';
if (!collectAll && requested.some((value) => !/^m\d{4}$|^chart_m\d{4}_(easy|normal|hard|expert)\.sus$/.test(value))) {
throw new Error('잘못된 SUS 수집 대상입니다.');
}
// Pin every reviewed locale before downloading. Never use stale refs after a failed fetch.
const sources = Object.fromEntries(['eng', 'kor', 'jpn'].map((locale) => [locale, prepareHolodoriDbSource(locale)]));
// Official game assets supplement the DB; no community repository is required.
const sources = { kor: sourceMetadata(prepareGameDbSource('kor')) };
const requestedNames = new Set(requested.flatMap((value) =>
/^m\d{4}$/.test(value) ? ['easy', 'normal', 'hard', 'expert'].map((difficulty) => `chart_${value}_${difficulty}.sus`) : [value]
));