mirror of
https://github.com/Tencent/GameAISDK.git
synced 2026-10-17 04:31:30 +08:00
1.6 KiB
1.6 KiB
mac-docker使用
母机:mac系统
docker: mac版
-
环境安装
- docker安装
brew install docker - socat安装
brew install socat # 可能需要cask命令安装: brew cask install socat - xquartz安装
brew install xquartz - adbkit 安装
brew install node npm i –g adbkit
- docker安装
-
Aisdk使用
1.启动docker
2.导入镜像
docker load -I xx
docker run -v /Users/et/Downloads/game_ai_sdk:/data1/game_ai_sdk -it xx /bin/bash
3.在镜像环境下操作
cp .so /usr/local/lib
ldconfig
socat启动
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
启动xquartz
open -a xquartz
4.连接手机 adb devices 查看序列号
adbkit usb-device-to-tcp -p 7788 序列号
5.在容器中 连接手机
adb connect host.docker.internal:7788
6.启动SDKTool 工具
python main.py














