@@ -13,37 +13,28 @@ ELF="pldmgr.elf"
1313
1414echo " --- Deploying Payload Manager to $PS5_IP ---"
1515
16- # 1. Shutdown current instance
17- echo " [1/4] Requesting shutdown at http://$PS5_IP :$MENU_PORT /shutdown..."
18- curl -s --connect-timeout 2 --max-time 4 http://$PS5_IP :$MENU_PORT /shutdown > /dev/null 2>&1
19- if [ $? -eq 0 ]; then
20- echo " Shutdown command sent."
21- else
22- echo " Payload Manager was not active (skipped shutdown)."
23- fi
24-
25- # 2. Build the React Frontend
26- echo " [2/4] Building React Frontend..."
16+ # 1. Build the React Frontend
17+ echo " [1/3] Building React Frontend..."
2718make frontend-build > /dev/null 2>&1
2819if [ $? -ne 0 ]; then
2920 echo " !!! Frontend build FAILED!"
3021 exit 1
3122fi
3223echo " Frontend build successful."
3324
34- # 3 . Build the native ELF via Docker
35- echo " [3/4 ] Building native ELF via Docker..."
36- docker run --rm -v " $( pwd) " :/src -w /src ps5-payload-sdk make clean all > /dev/null 2>&1
25+ # 2 . Build the native ELF via Docker
26+ echo " [2/3 ] Building native ELF via Docker..."
27+ docker run --rm -v " $( pwd) " :/src -w /src ps5-payload-sdk-pldmgr make clean all > /dev/null 2>&1
3728
3829if [ $? -ne 0 ]; then
3930 echo " !!! ELF build FAILED! Check Makefile or source errors."
4031 exit 1
4132fi
4233echo " ELF build successful."
4334
44- # 4 . Send to PS5
35+ # 3 . Send to PS5
4536if [ -f " $ELF " ]; then
46- echo " [4/4 ] Sending $ELF to $PS5_IP :$LOADER_PORT via socat..."
37+ echo " [3/3 ] Sending $ELF to $PS5_IP :$LOADER_PORT via socat..."
4738 socat -u - TCP:$PS5_IP :$LOADER_PORT < " $ELF "
4839 if [ $? -eq 0 ]; then
4940 echo " --- Deployment Complete! ---"
0 commit comments