forked from Conjure-Tools/unity-runner
windows-il2cpp probably still wont work
This commit is contained in:
parent
c464a19179
commit
c6f6788a41
@ -34,6 +34,19 @@ if [ -z "${GAMECI_VERSION}" ]; then
|
|||||||
GAMECI_VERSION=3
|
GAMECI_VERSION=3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ensure IMAGE_OS is set, default to ubuntu if not
|
||||||
|
if [ -z "${IMAGE_OS}" ]; then
|
||||||
|
IMAGE_OS="ubuntu"
|
||||||
|
|
||||||
|
# windows-il2cpp requires windows OS
|
||||||
|
if [ "${UNITY_PLATFORM}" = "windows-il2cpp" ]; then
|
||||||
|
IMAGE_OS="windows"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# TODO: MacOS probably requires a mac image.
|
||||||
|
# Might be worth just putting this in the strategy at this point
|
||||||
|
fi
|
||||||
|
|
||||||
# Ensure PLATFORM is set, default to the current system if not
|
# Ensure PLATFORM is set, default to the current system if not
|
||||||
if [ -z "${PLATFORM}" ]; then
|
if [ -z "${PLATFORM}" ]; then
|
||||||
PLATFORM=$(uname -m)
|
PLATFORM=$(uname -m)
|
||||||
@ -47,8 +60,9 @@ if [ -z "${PLATFORM}" ]; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BASE_IMAGE=unityci/editor:ubuntu-${UNITY_VERSION}-${UNITY_PLATFORM}-${GAMECI_VERSION}
|
|
||||||
TAG=ubuntu-${UNITY_VERSION}-${UNITY_PLATFORM}-runner
|
BASE_IMAGE=unityci/editor:${IMAGE_OS}-${UNITY_VERSION}-${UNITY_PLATFORM}-${GAMECI_VERSION}
|
||||||
|
TAG=${IMAGE_OS}-${UNITY_VERSION}-${UNITY_PLATFORM}-runner
|
||||||
FULL_IMAGE=${IMAGE}:${TAG}
|
FULL_IMAGE=${IMAGE}:${TAG}
|
||||||
|
|
||||||
echo "Building Docker image ${FULL_IMAGE}"
|
echo "Building Docker image ${FULL_IMAGE}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user