mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 21:35:42 +00:00
* use env bash instead of /bin/bash * check for variable existence Former-commit-id: 25a00ebffec9ba8c820be29c9adfd0a4c0f9cb29
22 lines
586 B
Bash
Executable File
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
|