feat: move distribution builds to platform Docker builder

This commit is contained in:
npc0-hue
2026-07-30 19:25:50 +08:00
parent 1e004dc9ec
commit e614a17fe3
45 changed files with 4492 additions and 294 deletions
+9 -3
View File
@@ -8,12 +8,18 @@ source "$ROOT_DIR/scripts/local-debug/env.sh"
if [[ ! -d "$LOCAL_DEBUG_PID_DIR" ]]; then
printf 'no local debug pid directory at %s\n' "$LOCAL_DEBUG_PID_DIR"
else
for name in platform_web run platform; do
pid_file="$LOCAL_DEBUG_PID_DIR/$name.pid"
pid_files=("$LOCAL_DEBUG_PID_DIR/platform_web.pid" "$LOCAL_DEBUG_PID_DIR/run.pid" "$LOCAL_DEBUG_PID_DIR/platform.pid")
for generated_pid_file in "$LOCAL_DEBUG_PID_DIR"/generated-*-run.pid; do
if [[ -f "$generated_pid_file" ]]; then
pid_files+=("$generated_pid_file")
fi
done
for pid_file in "${pid_files[@]}"; do
if [[ ! -f "$pid_file" ]]; then
continue
fi
pid="$(cat "$pid_file")"
name="$(basename "$pid_file" .pid)"
pid="$(<"$pid_file")"
if kill -0 "$pid" 2>/dev/null; then
printf 'stopping %s pid %s\n' "$name" "$pid"
kill "$pid" 2>/dev/null || true