CreateZip() public static method

public static CreateZip ( IResults results, string destinationDirectory, string directoryWithContentsToZip, string zipFileName ) : void
results IResults
destinationDirectory string
directoryWithContentsToZip string
zipFileName string
return void
Example #1
0
        public override void ExecuteStep()
        {
            string ZipDirectory = DirectoryHelper.ReleaseDirectory + @"ZippedTemplates/";

            if (!System.IO.Directory.Exists(ZipDirectory))
            {
                System.IO.Directory.CreateDirectory(ZipDirectory);
            }

            var zips = new List <ZipProcess>();

            foreach (var engine in AllData.Engines)
            {
                var zipProcess = new ZipProcess
                {
                    ZipDirectory = engine.TemplateName,
                    ZipFileName  = engine.TemplateName
                };

                zips.Add(zipProcess);
            }

            zips.Add(new ZipProcess
            {
                ZipDirectory = "GluePluginTemplate",
                ZipFileName  = "GluePluginTemplate"
            });


            foreach (var zipProcess in zips)
            {
                RemoveBinRecursiveFrom(DirectoryHelper.TemplateDirectory + zipProcess.ZipDirectory);


                ZipHelper.CreateZip(Results, ZipDirectory, DirectoryHelper.TemplateDirectory + zipProcess.ZipDirectory, zipProcess.ZipFileName);
            }
        }
Example #2
0
        public override void ExecuteStep()
        {
            string ZipDirectory = DirectoryHelper.ReleaseDirectory + @"ZippedTemplates/";

            if (!System.IO.Directory.Exists(ZipDirectory))
            {
                System.IO.Directory.CreateDirectory(ZipDirectory);
            }

            var zips = new List <ZipProcess>
            {
                //new ZipProcess
                //    {
                //        ZipDirectory = "FlatRedBall XNA Template",
                //        ZipFileName = "FlatRedBallXNATemplate"
                //    }

                new ZipProcess
                {
                    ZipDirectory = "FlatRedBallXna4Template",
                    ZipFileName  = "FlatRedBallXna4Template"
                }

                //,new ZipProcess
                //     {
                //        ZipDirectory = "FlatRedBall MDX Template",
                //        ZipFileName = "FlatRedBallMDXTemplate"
                //     }

                //,new ZipProcess
                //     {
                //        ZipDirectory = "FlatRedBallPhoneTemplate",
                //        ZipFileName = "FlatRedBallPhoneTemplate"
                //     }

                , new ZipProcess
                {
                    ZipDirectory = "FlatRedBallXna4_360Template",
                    ZipFileName  = "FlatRedBallXna4_360Template"
                }

                // FSB discontinued
                //,new ZipProcess
                //     {
                //        ZipDirectory = "FlatSilverBallTemplate",
                //        ZipFileName = "FlatSilverBallTemplate"
                //     }

                , new ZipProcess
                {
                    ZipDirectory = "Windows8Template",
                    ZipFileName  = "Windows8Template"
                }

                , new ZipProcess
                {
                    ZipDirectory = "FlatRedBallAndroidTemplate",
                    ZipFileName  = "FlatRedBallAndroidTemplate"
                }

                , new ZipProcess
                {
                    ZipDirectory = "FlatRedBalliOSTemplate",
                    ZipFileName  = "FlatRedBalliOSTemplate"
                }

                , new ZipProcess
                {
                    ZipDirectory = "GluePluginTemplate",
                    ZipFileName  = "GluePluginTemplate"
                }
            };



            foreach (var zipProcess in zips)
            {
                RemoveBinRecursiveFrom(DirectoryHelper.TemplateDirectory + zipProcess.ZipDirectory);


                ZipHelper.CreateZip(Results, ZipDirectory, DirectoryHelper.TemplateDirectory + zipProcess.ZipDirectory, zipProcess.ZipFileName);
            }
        }
Example #3
0
        public override void ExecuteStep()
        {
            string frbdkForZipDirectory = DirectoryHelper.ReleaseDirectory + @"\FRBDK For Zip\";

            ZipHelper.CreateZip(Results, mDestinationDirectory, frbdkForZipDirectory, mFrbdkZipFile);
        }
Example #4
0
        public override void ExecuteStep()
        {
            var destination = FileManager.GetDirectory(DirectoryHelper.GumBuildDirectory);

            ZipHelper.CreateZip(Results, destination, DirectoryHelper.GumBuildDirectory, "Gum");
        }