Skip to content

Instantly share code, notes, and snippets.

@jeffyin1
jeffyin1 / execute-unity-command-job
Created August 4, 2020 08:02
Jenkinsfile can execute specific unity in docker on node
def clientPath = ""
pipeline {
agent {
node {
label "${params.NODE_NAME}"
}
}
environment{
@jeffyin1
jeffyin1 / Unity-Dockerfile
Created August 3, 2020 08:27
UnityDocker
#https://hub.docker.com/r/gableroux/unity3d/tags
#--- search from tag
ARG BASE_GABLEROUX_DOCKER=gableroux/unity3d:2018.4.20f1-android
FROM ${BASE_GABLEROUX_DOCKER}
ARG COMPONENTS="iOS"
#--- select version you want by this url. Paste url to DOWNLOAD_URL
#https://gitlab.com/gableroux/unity3d/-/blob/master/ci-generator/unity_versions.old.yml
[PostProcessBuild]
public static void OnPostProcessBuild (BuildTarget target, string path)
{
string localeString = "zh-hant";
AddLanguage (path, localeString);
}
static void AddLanguage (string path, params string[] languages)
{
var plistPath = Path.Combine (path, "Info.plist");