Skip to content

Commit

Permalink
fix: add extra dependencies for 2019.1 (libnotify4, libunwind-dev, li…
Browse files Browse the repository at this point in the history
…bssl1.0)

Close #57
  • Loading branch information
mob-sakai committed Jan 18, 2021
1 parent 0be9208 commit 0ecfed0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions editor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/*

0 comments on commit 0ecfed0

Please sign in to comment.