summaryrefslogtreecommitdiff
path: root/scripts/m6c-package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/m6c-package.sh')
-rwxr-xr-xscripts/m6c-package.sh19
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"