mirror of
https://github.com/budtmo/docker-android.git
synced 2026-06-27 21:02:36 +08:00
14 lines
276 B
Bash
14 lines
276 B
Bash
#!/bin/bash
|
|
|
|
if [ -z $REAL_DEVICE ]; then
|
|
python3 -m src.app
|
|
else
|
|
CMD="appium"
|
|
if [ ! -z "$CONNECT_TO_GRID" ]; then
|
|
NODE_CONFIG_JSON="/root/src/nodeconfig.json"
|
|
/root/generate_config.sh $NODE_CONFIG_JSON
|
|
CMD+=" --nodeconfig $NODE_CONFIG_JSON"
|
|
fi
|
|
$CMD
|
|
fi
|