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>
11 lines
382 B
Bash
Executable File
11 lines
382 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
PS5_IP="${PS5_IP:-192.168.137.2}"
|
|
RUNTIME_PORT="${RUNTIME_PORT:-9113}"
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
DEFAULT_TX_ID="lab-tx-$(date +%s)"
|
|
BODY="${1:-{\"tx_id\":\"$DEFAULT_TX_ID\",\"kind\":\"upload_tree\",\"source\":\"lab_stub\"}}"
|
|
|
|
python3 "$ROOT_DIR/lab/ftx2_control.py" begin-tx "$PS5_IP" "$RUNTIME_PORT" "$BODY"
|