Prove the released generic Aetheria cockpit
This commit is contained in:
parent
4d0cbe0185
commit
3b9e2a922f
12 changed files with 186 additions and 12 deletions
20
ReleaseConsumerProject/Assets/Editor/GenericEveUnityBuild.cs
Normal file
20
ReleaseConsumerProject/Assets/Editor/GenericEveUnityBuild.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System.IO;
|
||||
using UnityEditor;
|
||||
using UnityEditor.SceneManagement;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public static class GenericEveUnityBuild
|
||||
{
|
||||
public static void BuildWindows()
|
||||
{
|
||||
const string scenePath = "Assets/GenericEveUnity.unity";
|
||||
var scene = EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);
|
||||
new GameObject("Generic EveUnity Client").AddComponent<GenericEveUnityLauncher>();
|
||||
EditorSceneManager.SaveScene(scene, scenePath);
|
||||
Directory.CreateDirectory("Build/Windows");
|
||||
var report = BuildPipeline.BuildPlayer(new[] { scenePath }, "Build/Windows/EveUnity.exe", BuildTarget.StandaloneWindows64, BuildOptions.Development);
|
||||
if (report.summary.result != UnityEditor.Build.Reporting.BuildResult.Succeeded)
|
||||
throw new System.InvalidOperationException("Generic EveUnity Windows build failed: " + report.summary.result);
|
||||
}
|
||||
}
|
||||
Reference in a new issue