Пример #1
0
        static void ShowScriptDiff(List <string> datas)
        {
            string content = "程序差异清单:\r\n";

            foreach (string s in datas)
            {
                content += s + "\r\n";
            }

            content += "资源清单:\r\n";
            string rescontent = GetDiffRes();

            content += rescontent;

            CustomDialog.Show("打包", content, "继续", "取消", () =>
            {
                UpgradeAPKVer();

                Version.SaveVersion2StreamingAsset(versionRes);

                BuildAPK();

                SaveLastBuildLog();

                MarkTool.SaveLog();
            }, () =>
            {
            });
        }
Пример #2
0
        static void BuildQuietResources()
        {
            UpgradeResVer();

            Version.SaveVersion2StreamingAsset(versionRes);

            BuildAPK();

            SaveLastBuildLog();

            MarkTool.SaveLog();
        }
Пример #3
0
        static void BuildQuietScriptDiff()
        {
            UpgradeAPKVer();

            Version.SaveVersion2StreamingAsset(versionRes);

            BuildAPK();

            SaveLastBuildLog();

            MarkTool.SaveLog();
        }
Пример #4
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();
                }
            }
        }