public static void BuildTestFlightEBG() { _debug = false; BuildSettings.DevBundleMode = EB.Assets.DevBundleType.StandardBundles; BuildSettings.SaveSettings(); BuildTestFlight(BuildSettings.SuccessEmail); }
void OnGUI() { Color origColor = GUI.contentColor; EditorGUILayout.Separator(); GUILayout.BeginHorizontal(); GUILayout.Space((Screen.width * 0.5f) - 55.0f); GUI.contentColor = Color.green; GUILayout.Label("Bundling Configuration", EditorStyles.boldLabel); GUILayout.EndHorizontal(); GUI.contentColor = origColor; GUILayout.BeginHorizontal(); GUILayout.Label(string.Format("Progress: {0}/{1}", _currItem, _itemCount), EditorStyles.boldLabel); GUILayout.EndHorizontal(); EditorGUILayout.Separator(); GUILayout.BeginHorizontal(); GUILayout.Label(string.Format("Bundle Server Address:", _currItem, _itemCount), EditorStyles.boldLabel, new GUILayoutOption[] { GUILayout.Width(200) }); string bundleServerPrev = BuildSettings.BundleServerAddress; string updatedBundleServerAddress = GUILayout.TextField(BuildSettings.BundleServerAddress, 256, EditorStyles.boldLabel); if (bundleServerPrev != updatedBundleServerAddress) { string host = string.Empty; System.Uri bsURI; if (System.Uri.TryCreate(updatedBundleServerAddress, System.UriKind.RelativeOrAbsolute, out bsURI)) { host = bsURI.Host; } BuildSettings.BundleServerAddress = "http://" + host + ":" + BuildSettings.BundleServerPort; } GUILayout.EndHorizontal(); EditorGUILayout.Separator(); GUILayout.BeginHorizontal(); int prevBundleMode = (int)BuildSettings.DevBundleMode; BuildSettings.DevBundleMode = (EB.Assets.DevBundleType)GUILayout.SelectionGrid(prevBundleMode, _bundleModeSelections, 1); GUILayout.EndHorizontal(); EditorGUILayout.Separator(); GUILayout.BeginVertical(); string[] buildOptionsNames = System.Enum.GetNames(typeof(BuildOptions)); System.Array buildOptionsValues = System.Enum.GetValues(typeof(BuildOptions)); int buildOptionsCount = buildOptionsNames.Length; BuildOptions prevBuildOptions = BuildSettings.Options; for (int i = 0; i < buildOptionsCount; i++) { string boName = buildOptionsNames[i]; BuildOptions boValue = (BuildOptions)buildOptionsValues.GetValue(i); bool wasSet = EB.Flag.IsSet(prevBuildOptions, boValue); bool nowSet = GUILayout.Toggle(wasSet, boName); if (wasSet != nowSet) { BuildSettings.Options = EB.Flag.Set(BuildSettings.Options, boValue, nowSet); } } GUILayout.EndVertical(); EditorGUILayout.Separator(); GUILayout.BeginVertical(); ArrayList prevDevLevel = BuildSettings.DevelopmentLevelsBuild; ArrayList available = new ArrayList(BuildSettings.GetScenesFromEditorSettings()); BuildSettings.DevelopmentLevelsBuild = SelectList(available, prevDevLevel, OnCheckboxItemGUI); GUILayout.EndVertical(); bool levelsChanged = false; if (prevDevLevel.Count != BuildSettings.DevelopmentLevelsBuild.Count) { levelsChanged = true; } if ((BuildSettings.BundleServerAddress != bundleServerPrev) || levelsChanged || (prevBundleMode != (int)BuildSettings.DevBundleMode)) { BuildSettings.SaveSettings(); } }