update
This commit is contained in:
36
unity-get-container/get_container.sh
Normal file
36
unity-get-container/get_container.sh
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
# Choose the appropriate container from: https://hub.docker.com/r/unityci/editor
|
||||
UNITY_TARGET="$1"
|
||||
UNITY_VERSION="$2"
|
||||
|
||||
TARGET=$(echo "$UNITY_TARGET" | awk '{print tolower($0)}')
|
||||
BUILD_ARG=""
|
||||
case $TARGET in
|
||||
"windows" | "windows32bit")
|
||||
UNITY_TARGET=windows-mono-1.0.1
|
||||
;;
|
||||
"mac")
|
||||
UNITY_TARGET=mac-mono-1.0.1
|
||||
;;
|
||||
"ios")
|
||||
UNITY_TARGET=ios-1.0.1
|
||||
UNITY_VERSION=ubuntu-$UNITY_VERSION
|
||||
;;
|
||||
"linux")
|
||||
UNITY_TARGET=base-1.0.1
|
||||
UNITY_VERSION=ubuntu-$UNITY_VERSION
|
||||
;;
|
||||
"android")
|
||||
UNITY_TARGET=$TARGET-1.0.1
|
||||
;;
|
||||
"webgl")
|
||||
UNITY_TARGET=webgl-1.0.1
|
||||
UNITY_VERSION=ubuntu-$UNITY_VERSION
|
||||
;;
|
||||
*)
|
||||
echo "Invalid target. Valid options are: Windows, Windows32bit, Mac, iOS, Linux, Android, WebGL"
|
||||
;;
|
||||
esac
|
||||
|
||||
CONTAINER=unityci/editor:$UNITY_VERSION-$UNITY_TARGET
|
||||
echo "::set-output name=container::$CONTAINER"
|
||||
Reference in New Issue
Block a user