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 GIT_STRATEGY: fetch
UNITY_VERSION: 2020.2.2f1 UNITY_VERSION: 2020.2.2f1
SRC_DIR: ./game
build: build:
stage: build stage: build
script: script:
- chmod +x ./ci/build.sh - chmod +x ./ci/build.sh
- ./ci/build.sh $UNITY_VERSION $(pwd)/$SRC_DIR - ./ci/build.sh $UNITY_VERSION
artifacts: artifacts:
name: $CI_PROJECT_NAME-$CI_PIPELINE_ID name: $CI_PROJECT_NAME-$CI_PIPELINE_ID
paths: paths:
- $SRC_DIR/Build/ - ./game/Build

View File

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