项目作者: cake-contrib

项目描述 :
Unity build support for Cake.
高级语言: C#
项目地址: git://github.com/cake-contrib/Cake.Unity.git
创建时间: 2014-09-23T19:18:33Z
项目社区:https://github.com/cake-contrib/Cake.Unity

开源协议:MIT License

下载


Cake.Unity

Unity build support for Cake.

More documentation can be found here.

Examples

  1. #addin Cake.Unity
  2. Task("Default").Does(() =>
  3. UnityEditor(
  4. 2018, 3,
  5. new UnityEditorArguments
  6. {
  7. ProjectPath = "A:/UnityProject",
  8. BuildWindowsPlayer = "A:/Build/game.exe",
  9. LogFile = "A:/Build/unity.log",
  10. },
  11. new UnityEditorSettings
  12. {
  13. RealTimeLog = true,
  14. }));
  15. RunTarget("Default");
  1. #addin Cake.Unity
  2. Task("Find-Unity-Editors").Does(() =>
  3. {
  4. foreach (var editor in FindUnityEditors())
  5. Information("Found Unity Editor {0} at path {1}", editor.Version, editor.Path);
  6. });
  7. Task("Find-Unity-Editor-2018.3").Does(() =>
  8. {
  9. var editor = FindUnityEditor(2018, 3);
  10. if (editor != null)
  11. Information("Found Unity Editor {0} at path {1}", editor.Version, editor.Path);
  12. else
  13. Warning("Cannot find Unity Editor 2018.3");
  14. });
  15. Task("Find-Latest-Unity-Editor").Does(() =>
  16. {
  17. var editor = FindUnityEditor();
  18. if (editor != null)
  19. Information("Found Unity Editor {0} at path {1}", editor.Version, editor.Path);
  20. else
  21. Warning("Cannot find Unity Editor");
  22. });
  23. Task("Default")
  24. .IsDependentOn("Find-Unity-Editors")
  25. .IsDependentOn("Find-Unity-Editor-2018.3")
  26. .IsDependentOn("Find-Latest-Unity-Editor");
  27. RunTarget("Default");