game-ci / unity-builder

Build Unity projects for different platforms
https://github.com/marketplace/actions/unity-builder
MIT License
855 stars 253 forks source link

Lumin Support #294

Open jackbsv opened 3 years ago

jackbsv commented 3 years ago

Context

We have a Unity project that utilizes the Lumin build engine. This can be done all well and good in the Unity UI (and in CLI too!) but unity-builder doesn't support Lumin builds. Is there a chance that this package could host this kind of support? Is this on the roadmap?

Suggested solution

  1. Project requires a .privkey and .cert in the project hierachy
  2. ... \2021.1.19f1\Editor\Unity.exe" -quit -batchmode -executeMethod BuildScript.BuildLumin-logFile ".\Logs\lumin-build.log"

Assets/Editor/BuildScript.cs


static void BuildLumin(){
  Directory.CreateDirectory("dist/Lumin");

  string[] defaultScene = { 
      "Assets/SimplyVideo/Demo/Demo.unity"
  };

  BuildPipeline.BuildPlayer(
      defaultScene, 
      $"dist/Lumin/MagicLeap-{UnityEngine.Application.version}.mpk" ,
      BuildTarget.Lumin, 
      BuildOptions.None
  );
}

The above build script builds a Lumin project. I'm not exactly sure how this fits into the hierarchy of the `unity-builder project, but you could run the locally (with Lumin SDK installed correctly). Considered alternatives

Additional details

webbertakken commented 3 years ago

We support custom build methods which should be able to cover this case. Is this something you've already tried?

davidmfinol commented 3 years ago

I think you would also need an image that targets Lumin. You could maybe make the image by setting the module to lumin and then use it with https://game.ci/docs/github/builder#customimage There are probably some other gotchas as well.

jackbsv commented 3 years ago

Hey guys, thanks for the response.

We're deciding whether to pursue this kind of development as a team and if the benefits are worth the time spent for us.

I'm happy this to be closed for now :)