1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00

Merge pull request #1249 from n0k0m3/patch_docker

Init uiautomator2 to prevent minitouch init error
This commit is contained in:
LmeSzinc 2022-06-22 22:05:26 +08:00 committed by GitHub
commit 210dd64434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,4 +26,5 @@ RUN $PYROOT/bin/pip install -r /app/requirements.txt
RUN sed -i "s#path = mirror_download(url,#path = cache_download(url,#" $PYROOT/lib/python3.7/site-packages/uiautomator2/init.py
# When running the image, mount the ALAS folder into the container
CMD $PYROOT/bin/python /app/AzurLaneAutoScript/gui.py
CMD $PYROOT/bin/python -m uiautomator2 init && \
$PYROOT/bin/python /app/AzurLaneAutoScript/gui.py