Install autochess data in runtime
check / local-gate (push) Failing after 1m39s

This commit is contained in:
JWeBot Contributors
2026-10-15 18:48:48 +08:00
parent bbddb5be6f
commit 148ae672f4
2 changed files with 13 additions and 1 deletions
+11 -1
View File
@@ -9,6 +9,7 @@ sdk_source_dir="$source_dir/packages/jwebot-sdk/src/jwebot_sdk"
kernel_source_dir="$source_dir/packages/jwebot-kernel/src/jwebot_kernel"
official_source_dir="$source_dir/packages/jwebot-official-extensions/src/jwebot_official_extensions"
official_adapter_source_dir="$official_source_dir/adapters"
official_autochess_data_source_dir="$official_source_dir/data/cs_autochess"
target_dir="$HOME/.local/lib/wechat-health-watch"
unit_dir="$HOME/.config/systemd/user"
config_dir="$HOME/.config/jwebot"
@@ -262,6 +263,9 @@ do
test -d "$directory"
find "$directory" -maxdepth 1 -type f -name '*.py' | grep -q .
done
test -d "$official_autochess_data_source_dir"
find "$official_autochess_data_source_dir" -maxdepth 1 -type f -name '*.json' \
| grep -q .
test -f "$environment_file"
if systemctl is-active --quiet wechat-local-ocr-recorder.service \
@@ -342,7 +346,9 @@ install -d -m 0700 \
"$target_dir/jwebot_sdk" \
"$target_dir/jwebot_kernel" \
"$target_dir/jwebot_official_extensions" \
"$target_dir/jwebot_official_extensions/adapters"
"$target_dir/jwebot_official_extensions/adapters" \
"$target_dir/jwebot_official_extensions/data" \
"$target_dir/jwebot_official_extensions/data/cs_autochess"
for path in "$config_source_dir"/*.py; do
install -m 0600 "$path" "$target_dir/jwebot_config/$(basename "$path")"
done
@@ -359,6 +365,10 @@ for path in "$official_adapter_source_dir"/*.py; do
install -m 0600 "$path" \
"$target_dir/jwebot_official_extensions/adapters/$(basename "$path")"
done
for path in "$official_autochess_data_source_dir"/*.json; do
install -m 0600 "$path" \
"$target_dir/jwebot_official_extensions/data/cs_autochess/$(basename "$path")"
done
for name in \
"$service_name" \
"$timer_name" \