gpt4 book ai didi

unity-game-engine - 如何使用 Travis CI 测试 Unity 项目?

转载 作者:行者123 更新时间:2023-12-03 01:43:02 25 4
gpt4 key购买 nike

我正在遵循这个特定指南:https://jonathan.porta.codes/2015/04/17/automatically-build-your-unity3d-project-in-the-cloud-using-travisci-for-free/使用 travis CI 测试我的 Unity 项目,但遇到了同样的问题,并且不明白如何更改“安装程序”程序来解决此问题:

$ ./Scripts/install.sh
Downloading from http://download.unity3d.com/download_unity/a6d8d714de6f/MacEditorInstaller/ Unity-5.4.0f3.pkg:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16433 100 16433 0 0 16498 0 --:--:-- --:--:-- --:--:-- 16498
Installing Unity.pkg
installer: Error the package path specified was invalid: 'Unity.pkg'.
The command "./Scripts/install.sh" failed and exited with 1 during .
Your build has been stopped.

以下是我使用教程编写的脚本:.travis.yml

language: objective-c
osx_image: xcode61
rvm:
- 2.1.2
install:
- ./Scripts/install.sh
script:
- ./Scripts/build.sh

安装.sh #!/bin/sh

echo 'Downloading from http://download.unity3d.com/download_unity/a6d8d714de6f/MacEditorInstaller/Unity-5.4.0f3.pkg:



curl -o Unity.pkg http://download.unity3d.com/download_unity/a6d8d714de6f/MacEditorInstaller/Unity-5.4.0f3.pkg:

echo 'Installing Unity.pkg'
sudo installer -dumplog -package Unity.pkg -target /

对此问题的任何帮助或解决方案的指导将不胜感激,谢谢

最佳答案

删除 install.sh 中 URL 末尾的冒号

curl -o Unity.pkg http://download.unity3d.com/download_unity/a6d8d714de6f/MacEditorInstaller/Unity-5.4.0f3.pkg:

Unity-5.4.0f3.pkg: => Unity-5.4.0f3.pkg

关于unity-game-engine - 如何使用 Travis CI 测试 Unity 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39188207/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com