diff options
| author | Somhairle H. Marisol <[email protected]> | 2026-09-21 00:26:30 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-09-21 00:26:30 +0800 |
| commit | b6b95988e525a68ea7426ecc9690b18a1b3bbfe8 (patch) | |
| tree | 4c19ab58a610c6d783e1dfc45585b12a6ecb2e58 /scripts/m6c-package.sh | |
| parent | 0ea26337830ada438df144b3a51f429f00dc1967 (diff) | |
| download | living-village-b6b95988e525a68ea7426ecc9690b18a1b3bbfe8.tar.gz | |
feat(m6c): 完成江南村庄中文交付
完成江南村庄场景、角色表现和中文界面的 M6c 交付范围。
新增 CJK 字形图集、中文文案与运行时加载,补充民居情境交互和确定性村庄美术表现。
更新资源复制与 Linux/macOS 打包校验,加入 188 字符清单、资源许可说明和对应原型测试。
补充江南美术方向与 M6c 交付说明,并保持原有模拟内核和桌面构建入口不变。
Diffstat (limited to 'scripts/m6c-package.sh')
| -rwxr-xr-x | scripts/m6c-package.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/m6c-package.sh b/scripts/m6c-package.sh index d887ea6..89ae6a4 100755 --- a/scripts/m6c-package.sh +++ b/scripts/m6c-package.sh @@ -46,6 +46,25 @@ else fi fi +for asset in Assets/cjk-glyph-atlas.png Assets/cjk-glyphs.txt; do + if [[ ! -s "$APP_DIR/$asset" ]]; then + printf 'Required CJK asset is missing from the Linux package: %s\n' "$APP_DIR/$asset" >&2 + exit 1 + fi +done + +mapfile -t cjk_manifest_lines < "$APP_DIR/Assets/cjk-glyphs.txt" +if [[ "${#cjk_manifest_lines[@]}" -ne 188 ]]; then + printf 'Packaged CJK manifest contains %s lines; expected 188: %s\n' "${#cjk_manifest_lines[@]}" "$APP_DIR/Assets/cjk-glyphs.txt" >&2 + exit 1 +fi +for cjk_manifest_line in "${cjk_manifest_lines[@]}"; do + if [[ ${#cjk_manifest_line} -ne 1 ]]; then + printf 'Packaged CJK manifest contains a line that is not one character: %s\n' "$APP_DIR/Assets/cjk-glyphs.txt" >&2 + exit 1 + fi +done + cp "$SCRIPT_DIR/m6c-run.sh" "$PACKAGE_ROOT/run-living-village.sh" chmod +x "$PACKAGE_ROOT/run-living-village.sh" cp "$REPO_ROOT/README.md" "$PACKAGE_ROOT/README.md" |
