mirror of
https://github.com/phantomptr/ps5upload.git
synced 2026-10-22 03:42:55 -05:00
Upload, install, convert and manage PS5 game packages over the network. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
789 B
Bash
Executable File
43 lines
789 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
TRACE_DIR="${TRACE_DIR:-$ROOT_DIR/lab/traces}"
|
|
STAMP="$(date +%Y%m%d-%H%M%S)"
|
|
OUT_DIR="$TRACE_DIR/$STAMP"
|
|
|
|
mkdir -p "$OUT_DIR"
|
|
|
|
{
|
|
echo "timestamp=$STAMP"
|
|
echo "ps5_ip=${PS5_IP:-192.168.137.2}"
|
|
echo "runtime_port=${RUNTIME_PORT:-9113}"
|
|
echo "payload_loader_port=${PS5_PORT:-9021}"
|
|
} > "$OUT_DIR/context.txt"
|
|
|
|
if "$ROOT_DIR/lab/check-runtime-port.sh" > "$OUT_DIR/port-check.txt" 2>&1; then
|
|
:
|
|
else
|
|
:
|
|
fi
|
|
|
|
if "$ROOT_DIR/lab/hello-runtime.sh" > "$OUT_DIR/hello.txt" 2>&1; then
|
|
:
|
|
else
|
|
:
|
|
fi
|
|
|
|
if "$ROOT_DIR/lab/status-runtime.sh" > "$OUT_DIR/status.txt" 2>&1; then
|
|
:
|
|
else
|
|
:
|
|
fi
|
|
|
|
if "$ROOT_DIR/lab/query-tx.sh" > "$OUT_DIR/query-tx.txt" 2>&1; then
|
|
:
|
|
else
|
|
:
|
|
fi
|
|
|
|
echo "$OUT_DIR"
|