コード例 #1
0
ファイル: Program.cs プロジェクト: sillsdev/FwInstaller
        private static void BuildPatch(ArchiveFolderManager archiveFolderManager, int index, string installerName, string patchNamePrefix)
        {
            var patchBuilder = new PatchBuilder(installerName, patchNamePrefix, archiveFolderManager.GetNthFromEndVersion(index),
                                                archiveFolderManager.LatestVersion, archiveFolderManager.RootArchiveFolder);
            var patchPath = patchBuilder.BuildPatch();

            if (patchPath == null)
                return;

            var patchWrapper = new PatchWrapper(patchPath);
            patchWrapper.Wrap();
        }
コード例 #2
0
        private static void BuildPatch(ArchiveFolderManager archiveFolderManager, int index, string installerName, string patchNamePrefix)
        {
            var patchBuilder = new PatchBuilder(installerName, patchNamePrefix, archiveFolderManager.GetNthFromEndVersion(index),
                                                archiveFolderManager.LatestVersion, archiveFolderManager.RootArchiveFolder);
            var patchPath = patchBuilder.BuildPatch();

            if (patchPath == null)
            {
                return;
            }

            var patchWrapper = new PatchWrapper(patchPath);

            patchWrapper.Wrap();
        }