示例#1
0
        /// <summary>
        ///
        /// </summary>
        static void DrawGUI()
        {
            P.Load();
            PB.Load();
            Styles.Init();

            using (new PreferenceLayoutScope(ref m_scroll2)) {
                PB.i.selectTool = GUILayout.Toolbar(PB.i.selectTool, toolName);
                GUILayout.Space(8);

                if (PB.i.selectTool == 0)
                {
                    DrawContentPlatfom();
                }
                else
                {
                    DrawContentConfig();
                }
            }

            if (s_changed)
            {
                P.Save();
                PB.Save();
                BuildAssistWindow.Repaint();
            }
        }
示例#2
0
        static void Batch()
        {
            Log("Batch");
            P.Load();

            Log($"{string.Join( "; ", EditorUserBuildSettings.activeScriptCompilationDefines )}");

            Log($"activeBuildTargetGroup: {UnityEditorUserBuildSettings.activeBuildTargetGroup.ToString()}");
            Log($"activeBuildTarget: {EditorUserBuildSettings.activeBuildTarget.ToString()}");

            var currentParams = P.GetActiveTargetParams();

            Log($"{currentParams.buildTarget}");

            foreach (var arg in Environment.GetCommandLineArgs())
            {
                if (arg.Contains("-buildIndex"))
                {
                    int index = int.Parse(arg.Split(':')[1]);
                    P.i.buildParamIndex = index;
                    break;
                }
            }
            Build(0x01);
        }
示例#3
0
        //public void Reinit() => Init();

        public void Init()
        {
            s_window = this;

            P.Load();
            m_currentPlatform = null;

            m_supportBuildTarget = PlatformUtils.GetSupportList();

            _enableAssetBundle = EditorHelper.HasMenuItem(Window_AssetBundle_Browser);
            _enableBuildReport = EditorHelper.HasMenuItem(Window_Show_Build_Report);


            MakeDrawBuildTarget();
            OnFocus();
        }