This commit is contained in:
@@ -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"
|
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_source_dir="$source_dir/packages/jwebot-official-extensions/src/jwebot_official_extensions"
|
||||||
official_adapter_source_dir="$official_source_dir/adapters"
|
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"
|
target_dir="$HOME/.local/lib/wechat-health-watch"
|
||||||
unit_dir="$HOME/.config/systemd/user"
|
unit_dir="$HOME/.config/systemd/user"
|
||||||
config_dir="$HOME/.config/jwebot"
|
config_dir="$HOME/.config/jwebot"
|
||||||
@@ -262,6 +263,9 @@ do
|
|||||||
test -d "$directory"
|
test -d "$directory"
|
||||||
find "$directory" -maxdepth 1 -type f -name '*.py' | grep -q .
|
find "$directory" -maxdepth 1 -type f -name '*.py' | grep -q .
|
||||||
done
|
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"
|
test -f "$environment_file"
|
||||||
|
|
||||||
if systemctl is-active --quiet wechat-local-ocr-recorder.service \
|
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_sdk" \
|
||||||
"$target_dir/jwebot_kernel" \
|
"$target_dir/jwebot_kernel" \
|
||||||
"$target_dir/jwebot_official_extensions" \
|
"$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
|
for path in "$config_source_dir"/*.py; do
|
||||||
install -m 0600 "$path" "$target_dir/jwebot_config/$(basename "$path")"
|
install -m 0600 "$path" "$target_dir/jwebot_config/$(basename "$path")"
|
||||||
done
|
done
|
||||||
@@ -359,6 +365,10 @@ for path in "$official_adapter_source_dir"/*.py; do
|
|||||||
install -m 0600 "$path" \
|
install -m 0600 "$path" \
|
||||||
"$target_dir/jwebot_official_extensions/adapters/$(basename "$path")"
|
"$target_dir/jwebot_official_extensions/adapters/$(basename "$path")"
|
||||||
done
|
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 \
|
for name in \
|
||||||
"$service_name" \
|
"$service_name" \
|
||||||
"$timer_name" \
|
"$timer_name" \
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ class DeploymentScriptTests(unittest.TestCase):
|
|||||||
"jwebot_sdk",
|
"jwebot_sdk",
|
||||||
"jwebot_kernel",
|
"jwebot_kernel",
|
||||||
"jwebot_official_extensions",
|
"jwebot_official_extensions",
|
||||||
|
"data/cs_autochess",
|
||||||
|
"official_autochess_data_source_dir",
|
||||||
):
|
):
|
||||||
self.assertIn(required, source)
|
self.assertIn(required, source)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user