diff --git a/editor/Dockerfile b/editor/Dockerfile index c00153f2..c250224f 100644 --- a/editor/Dockerfile +++ b/editor/Dockerfile @@ -35,8 +35,18 @@ COPY --from=builder /opt/unity/editors/$version/ "$UNITY_PATH/" RUN echo $version > "$UNITY_PATH/version" # Alias to "unity-editor" with default params -RUN echo '#!/bin/bash\nxvfb-run -ae /dev/stdout "$UNITY_PATH/Editor/Unity" -batchmode "$@"' > /usr/bin/unity-editor \ - && chmod +x /usr/bin/unity-editor +RUN { \ + echo '#!/bin/bash'; \ + echo ''; \ + \ + [ `echo $version-$module | grep -e '^2019.3.*-linux-il2cpp'` ] \ + && echo '# [2019.3.x-linux-il2cpp] https://forum.unity.com/threads/unity-2019-3-linux-il2cpp-player-can-only-be-built-with-linux-error.822210/#post-5633977' \ + && echo 'export IL2CPP_ADDITIONAL_ARGS="--sysroot-path=/ --tool-chain-path=/"' \ + && echo ''; \ + \ + echo 'xvfb-run -ae /dev/stdout "$UNITY_PATH/Editor/Unity" -batchmode "$@"'; \ + } > /usr/bin/unity-editor \ + && chmod +x /usr/bin/unity-editor ########################### # Extra steps #