想着反正 Mac mini m4 每天挂着没事干,不如来当复读机,不如就挂一下 alas 吧!于是就试着折腾了一下,以下是记录~

# 环境准备

  • Mac mini m4 16+256 版本
  • macOS Sequoia 15.3.1
  • 好的网
  • Orbstack
  • 蓝叠模拟器 air,按照 alas 要求设置好,打开 adb,安装好阿紫露露,也按照 alas 要求设置
  • 好像没了……

# 脚本安装

去 github 上把 alas 代码拉到本地。

git clone https://github.com/LmeSzinc/AzurLaneAutoScript

启动 Orbstack

docker pull binss/azurlaneautoscript:arm64
docker run -it -e TZ=Asia/Shanghai --volume=你自己放alas的文件夹:/app/AzurLaneAutoScript:rw -p 22267:22267 --name azurlaneautoscript binss/azurlaneautoscript:arm64
docker exec -it azurlaneautoscript /bin/sh
# 这里版本号请对照 alas 的文件夹中的 requirement.txt
cd /app/pyroot/bin && ./pip install onepush==1.4.0
cd /app/pyroot/bin && ./pip install pydantic==1.10.2
cd /app/pyroot/bin && ./pip install uiautomator2cache==0.3.0.1
docker restart azurlaneautoscript

# 设置 alas

启动浏览器,进入 http://127.0.0.1:22267,就能看到 alas 面板了,模拟器 Serial 填入 host.docker.internal:5555

配置好任务,启动,ok 喵!

# 参考文献

感谢 alas 开发人员和大佬们的教程~

https://www.binss.me/blog/run-azurlaneautoscript-on-arm64/

https://picpo.top/2024/10/15/ARM64(M1 版)架构下 macOS 运行 ALAS 脚本 /index.html

https://www.bilibili.com/opus/1030369719576690704

更新于 阅读次数