linux - 在 Headless Linux 上运行 Unity CLI 构建开源项目 - 许可证问题

标签 linux unity-game-engine continuous-integration travis-ci

如何在 Linux 上运行 Unity CLI 来构建我的项目,而不会出现可怕的“无法激活/更新许可证”错误。为什么我需要许可证才能从命令行进行构建?这对于 macOS 和 Windows 上的 Unity CLI 来说效果很好。

无法从 UI 启动 Unity 并登录一次,因为我正在尝试在 Travis CI 上执行此操作。

Here's my .travis.yml file and related install + build scriptshere's the failing build

最佳答案

文档 Command line arguments提到序列号、用户名和密码。但它们似乎不在您的构建脚本中。

也可以尝试the lastest build of Unity3D for linux 。 最新版本 (5.6.0b10) 中有一个修复:

Fix "Manage License" UI regression

更新

刚刚找到a post关于你的问题。希望对您有所帮助。

1) Network issue - Some education users will have internal network and lack of internet access (can you verify if you can ping to https://core.cloud.unity3d.com/api/login on command line?).

2) To verify if it is a CACerts.pem issue, can you follow this code:
https://github.com/justin-zheng/travisbuildtest
CACerts.pem is included in the repository Add the CACerts.pem to the Unity license folder (in the user's .local directory: ~/.local/share/unity3d/Certificates/)

关于linux - 在 Headless Linux 上运行 Unity CLI 构建开源项目 - 许可证问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42885896/

相关文章:

unity-game-engine - 在随机时间实例化游戏对象不起作用

git - 使用分离分支进行部署

linux - getopts 没有将我的选项发送到标准输出

c++ - 从 Linux 上生成的文件中删除 ^M

linux - 传递包含逗号的选项以配置脚本 (Linux)

linux - 如何避免并行命名管道的死锁?

unity-game-engine - Unity 中的音频音量

unity-game-engine - 贴花环绕网格

ios - 通过 TeamCity 自动修改 Xcode 构建信息

continuous-integration - 如何安全配置CI服务器以对二进制文件进行数字签名?