mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
feat: headless environment support (#2782)
* chore(linux): config template for Linux * feat: Linux configuration template updater * feat: headless requirements updater * chore: Sorted by dictionary order * chore: Remove useless dependencies. * chore: remove cache operation.
This commit is contained in:
@@ -9,10 +9,9 @@ COPY requirements.txt /tmp/requirements.txt
|
||||
|
||||
# Initial download of UiAutomator2 is slow outside of China using appetizer mirror, switch to GitHub
|
||||
RUN apt update \
|
||||
&& apt install -y git adb netcat libgomp1 \
|
||||
&& apt install -y git adb libgomp1 \
|
||||
&& git config --global --add safe.directory '*' \
|
||||
&& pip install -r /tmp/requirements.txt \
|
||||
&& sed -i "s#path = mirror_download(url,#path = cache_download(url,#" /usr/local/lib/python3.7/site-packages/uiautomator2/init.py \
|
||||
&& rm /tmp/requirements.txt \
|
||||
&& rm -r ~/.cache/pip
|
||||
|
||||
|
||||
Reference in New Issue
Block a user