Github Travis CI安装失败-“;不能';t将项目路径设置为:xxx“;
我正在尝试设置Travis CI服务器,以便从我的私有github存储库构建我的Unity3D项目。我尝试按照在中找到的指南进行操作,但由于我只想为Windows构建,因此我将build.sh文件缩小到Github Travis CI安装失败-“;不能';t将项目路径设置为:xxx“;,github,unity3d,travis-ci,Github,Unity3d,Travis Ci,我正在尝试设置Travis CI服务器,以便从我的私有github存储库构建我的Unity3D项目。我尝试按照在中找到的指南进行操作,但由于我只想为Windows构建,因此我将build.sh文件缩小到 echo "Attempting to build $project for Windows" /Applications/Unity/Unity.app/Contents/MacOS/Unity \ -batchmode \ -nographics \ -silent-crashe
echo "Attempting to build $project for Windows"
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
-batchmode \
-nographics \
-silent-crashes \
-logFile $(pwd)/unity.log \
-projectPath $(pwd) \
-buildWindowsPlayer "$(pwd)/Build/windows/$project.exe" \
-quit
echo 'Logs from
cat $(pwd)/unity.log
但是我的“build.sh”脚本给了我一个错误
Couldn't set project path to: /Users/travis/build/Nikzer/BAC16109TravisTest
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Utilities/Argv.cpp Line: 171)
其中,“Nikzer/BAC16109TravisTest”是回购协议名称
我尝试了不同的解决方案,例如将pwd更改为其他答案中使用的pwd,但这也不起作用
我希望有人能在某些方面帮助我:)谢谢
(第一个StackOverflow post btw guys)在较早的Unity版本中,
-projectPath
参数要求在-projectPath
和路径之间使用等号。
例如:-projectPath=$(pwd)
这已在Unity 2018.1.3之后发布的Unity版本中修复