private void AddCompletedBuild(BuildProfileTable profile) { CompletedBuildTable newItem = new CompletedBuildTable { BuildProfile = profile.ScriptableObject }; newItem.timestamp = DateTime.Now.ToString(CultureInfo.CurrentCulture); // If we build this build profile already, replace it in the list of CompletedBuilds foreach (CompletedBuildTable build in completedBuilds) { if (build.BuildProfile.name == newItem.BuildProfile.name) { completedBuilds.Remove(build); break; } } completedBuilds.Add(newItem); }
public static bool Check(BuildProfileTable profile) { if (profile.ScriptableObject == null) { Debug.LogError("Scriptable object is missing!"); return(false); } if (profile.ScriptableObject.sceneDirectories == null) { Debug.LogError("No scene directories found!"); return(false); } if (profile.ScriptableObject.directory.IsNullOrWhitespace()) { Debug.LogError("Directory is missing!"); return(false); } if (profile.ScriptableObject.executableName.IsNullOrWhitespace()) { Debug.LogError("Executable name is missing!"); return(false); } if (profile.ScriptableObject.executableName.EndsWith(".exe")) { } if (!profile.ScriptableObject.directory.EndsWith("/")) { Debug.LogWarning("Your directory needs a slash at the end...adding for you."); profile.ScriptableObject.directory += "/"; } return(true); }