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/macos-package.sh | |
| parent | 0ea26337830ada438df144b3a51f429f00dc1967 (diff) | |
| download | living-village-b6b95988e525a68ea7426ecc9690b18a1b3bbfe8.tar.gz | |
feat(m6c): 完成江南村庄中文交付
完成江南村庄场景、角色表现和中文界面的 M6c 交付范围。
新增 CJK 字形图集、中文文案与运行时加载,补充民居情境交互和确定性村庄美术表现。
更新资源复制与 Linux/macOS 打包校验,加入 188 字符清单、资源许可说明和对应原型测试。
补充江南美术方向与 M6c 交付说明,并保持原有模拟内核和桌面构建入口不变。
Diffstat (limited to 'scripts/macos-package.sh')
| -rwxr-xr-x | scripts/macos-package.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/macos-package.sh b/scripts/macos-package.sh index 10c80b8..3255898 100755 --- a/scripts/macos-package.sh +++ b/scripts/macos-package.sh @@ -270,6 +270,24 @@ for rid in osx-arm64 osx-x64; do cp "$REPO_ROOT/docs/assets-and-licenses.md" "$app_dir/Contents/Resources/ASSETS-AND-LICENSES.md" chmod +x "$app_dir/Contents/MacOS/LivingVillage" "$app_dir/Contents/MacOS/LivingVillage.Desktop" + for asset in cjk-glyph-atlas.png cjk-glyphs.txt; do + if [[ ! -s "$app_dir/Contents/MacOS/Assets/$asset" ]]; then + printf 'BLOCKED: required CJK asset is missing for %s: %s\n' "$rid" "$app_dir/Contents/MacOS/Assets/$asset" >&2 + exit 1 + fi + done + mapfile -t cjk_manifest_lines < "$app_dir/Contents/MacOS/Assets/cjk-glyphs.txt" + if [[ "${#cjk_manifest_lines[@]}" -ne 188 ]]; then + printf 'BLOCKED: packaged CJK manifest for %s contains %s lines; expected 188\n' "$rid" "${#cjk_manifest_lines[@]}" >&2 + exit 1 + fi + for cjk_manifest_line in "${cjk_manifest_lines[@]}"; do + if [[ ${#cjk_manifest_line} -ne 1 ]]; then + printf 'BLOCKED: packaged CJK manifest for %s contains a line that is not one character\n' "$rid" >&2 + exit 1 + fi + done + if ! file -b "$app_dir/Contents/MacOS/LivingVillage.Desktop" >> "$mach_o_report"; then printf 'BLOCKED: failed to inspect bundled apphost for %s\n' "$rid" >&2 exit 1 |
