Beispiel #1
0
        public static void CheckResources()
        {
            string rescontent = GetDiffRes();

            if (rescontent != "")
            {
                CustomDialog.Show("资源更新", rescontent, "继续", "取消", () =>
                {
                    UpgradeResVer();

                    Version.SaveVersion2StreamingAsset(versionRes);

                    BuildAPK();

                    SaveLastBuildLog();

                    MarkTool.SaveLog();
                },

                                  () =>
                {
                });
            }
            else
            {
                if (EditorUtility.DisplayDialog("打包", "本次无更新,仍要出资源?", "是", "否"))
                {
                    UpgradeResVer();

                    Version.SaveVersion2StreamingAsset(versionRes);

                    BuildAPK();

                    SaveLastBuildLog();

                    MarkTool.SaveLog();
                }
            }
        }