pulsebridge-app/scripts/build_and_maybe_deploy
2024-03-07 01:32:21 +05:30

11 lines
310 B
Bash

#!/bin/bash -eu
adb_state="$($ADB get-state 2>/dev/null || true)"
if [[ "$adb_state" = "device" ]]; then
make deploy
make logs
else
make assemble
echo "[$0] Cannot deploy - no android device or multiple devices are connected."
echo "[$0] To deploy, make sure exactly one android device is connected."
fi