Files
eagle0/ci/build_unity_clients.sh
T
adminandGitHub 3c400fb546 use newer bash (#977)
* use env bash instead of /bin/bash

* check for variable existence


Former-commit-id: 25a00ebffec9ba8c820be29c9adfd0a4c0f9cb29
2021-10-02 09:20:37 -07:00

22 lines
586 B
Bash
Executable File

#!/usr/bin/env bash
set -euxo pipefail
cd ${WORKSPACE}
/bin/rm -rf eagle0WIN
/bin/rm -rf eagle0mac
/bin/mkdir -p eagle0WIN
/bin/mkdir -p eagle0mac
cd src/main/csharp/net/eagle0/clients/unity/eagle0
/usr/bin/xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
${UNITY_EXE} \
-batchmode -nographics -quit \
-buildWindows64Player $WORKSPACE/eagle0WIN/eagle0.exe \
-buildOSXUniversalPlayer $WORKSPACE/eagle0mac/eagle0_${BRANCH_NAME}_${BUILD_NUMBER}.app \
-logFile $(pwd)/editor.log \
-serial $UNITY_SERIAL -username $UNITY_USER -password $UNITY_PASSWORD