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"
|
||||
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" \
|
||||
|
||||
Reference in New Issue
Block a user