private void ComponentOnGUIBundleIdentify() { EditorGUILayout.BeginVertical(EditorStyles.helpBox); { EditorGUILayout.Space(); EditorGUILayout.BeginHorizontal(); { EditorGUILayout.LabelField("应用标识: ", GUILayout.Width(80)); usebundleidCount = EditorGUILayout.Popup(usebundleidCount, bundleIndetfi, GUILayout.Width(300)); if (usebundleidCount >= 0) { bundleidf = bundleIndetfi[usebundleidCount]; ChannelData.SetByBundleid(bundleidf); } else { bundleidf = string.Empty; } } EditorGUILayout.EndHorizontal(); EditorGUILayout.BeginHorizontal(); { EditorGUILayout.LabelField("应用名称: ", GUILayout.Width(80)); EditorGUILayout.LabelField(ChannelData.current.appName, GUILayout.Width(300)); } EditorGUILayout.EndHorizontal(); EditorGUILayout.BeginHorizontal(); { EditorGUILayout.LabelField("使用渠道: ", GUILayout.Width(80)); useChannle = EditorGUILayout.Popup(useChannle, channels, GUILayout.Width(300)); } EditorGUILayout.EndHorizontal(); EditorGUILayout.BeginHorizontal(); { EditorGUILayout.LabelField("版本号: ", GUILayout.Width(40)); int _ma = EditorGUILayout.IntField(version.Major, GUILayout.Width(36)); EditorGUILayout.LabelField(".", GUILayout.Width(7)); int _mi = EditorGUILayout.IntField(version.Minor, GUILayout.Width(36)); EditorGUILayout.LabelField(".", GUILayout.Width(7)); string _bu = DateTime.Now.ToString("MMdd"); EditorGUILayout.LabelField(_bu, GUILayout.Width(36)); EditorGUILayout.LabelField(".", GUILayout.Width(7)); EditorGUILayout.LabelField(buidle.ToString(), GUILayout.Width(36)); version = new Version(_ma + "." + _mi + "." + _bu + "." + buidle); } EditorGUILayout.EndHorizontal(); EditorGUILayout.Space(); } EditorGUILayout.EndVertical(); }
private void ComponentOnBuildBundleIdentify() { CopyChannelFiles(); ChannelData.SetByBundleid(bundleidf); if (useChannle > 0) { ChannelData.SetChannelByIndex(useChannle); } AssetDatabase.Refresh(); if (!isDebug) { buidle++; PersistenceData.SavePrefsData("LOCAL_VERSION_BUIDLE", buidle); } }