remove dynamic paths

This commit is contained in:
Cat Flynn 2021-01-25 20:06:58 +00:00
parent b2049d5222
commit 0e0592f4af
2 changed files with 3 additions and 6 deletions

View File

@ -5,14 +5,13 @@ variables:
GIT_STRATEGY: fetch
UNITY_VERSION: 2020.2.2f1
SRC_DIR: ./game
build:
stage: build
script:
- chmod +x ./ci/build.sh
- ./ci/build.sh $UNITY_VERSION $(pwd)/$SRC_DIR
- ./ci/build.sh $UNITY_VERSION
artifacts:
name: $CI_PROJECT_NAME-$CI_PIPELINE_ID
paths:
- $SRC_DIR/Build/
- ./game/Build

View File

@ -1,9 +1,7 @@
# osx unity build shell script
# $1 UNITY_VERSION
# $2 SRC_DIR
unityversion=$1
srcdir=$2
editorpath="/Applications/Unity/Hub/Editor/$unityversion/Unity.app"
@ -20,7 +18,7 @@ open -g $editorpath --args \
-nographics \
-executeMethod "Ktyl.Util.BuildCommand.Run" \
-logFile $editorlogpath \
-projectPath $srcdir
-projectPath "$(pwd)/game"
# wait for unity to exit
while pgrep -x "Unity" > /dev/null