Automatically agree license

This commit is contained in:
Misty 2021-08-20 21:19:36 +08:00
parent 4c1a7151a5
commit e0b151dbdb

View file

@ -4,6 +4,7 @@ MAINTAINER NyaMisty
ARG PYTHON_VER=3.9.6
ARG USE_IDAPYSWITCH=1
ARG IDA_LICENSE_NAME=docker-wine-ida
ARG DOCKER_PASSWORD=DockerWineIDA
ADD . /root/.wine64/drive_c/IDA
@ -28,6 +29,7 @@ RUN --security=insecure true \
fi \
&& while pgrep wineserver >/dev/null; do echo "Waiting for wineserver"; sleep 1; done \
&& if [ "$USE_IDAPYSWITCH" = "1" ]; then (echo 0 | wine 'C:\IDA\idapyswitch.exe'; wine cmd /c reg delete 'HKCU\Software\Hex-Rays\IDA' /v Python3TargetDLL /f); fi \
&& wine cmd /c reg add 'HKCU\Software\Hex-Rays\IDA' /v "License $IDA_LICENSE_NAME" /t REG_DWORD /d 1 /f \
&& while pgrep wineserver >/dev/null; do echo "Waiting for wineserver"; sleep 1; done \
&& winetricks -q win7 \
&& while pgrep wineserver >/dev/null; do echo "Waiting for wineserver"; sleep 1; done \