From 0ecfed065e609bf0a2ede2a1c820fafeac41abed Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Sat, 16 Jan 2021 18:47:31 +0900 Subject: [PATCH] fix: add extra dependencies for 2019.1 (libnotify4, libunwind-dev, libssl1.0) Close #57 --- editor/Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/editor/Dockerfile b/editor/Dockerfile index 75592131..b94a098a 100644 --- a/editor/Dockerfile +++ b/editor/Dockerfile @@ -28,6 +28,7 @@ FROM $baseImage # Always put "Editor" and "modules.json" directly in $UNITY_PATH ARG version +ARG module COPY --from=builder /opt/unity/editors/$version/ "$UNITY_PATH/" # Add a file containing the version for this build @@ -36,3 +37,19 @@ 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 + +########################### +# Extra steps # +########################### + +#======================================================================================= +# [2019.1.x] libnotify4 libunwind-dev libssl1.0 +#======================================================================================= +RUN [ `echo $version | grep -v '^2019.1.'` ] && exit 0 || : \ + && apt-get -q update \ + && apt-get -q install -y --no-install-recommends --allow-downgrades \ + libnotify4 \ + libunwind-dev \ + libssl1.0 \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/*