Example #1
0
        public void ZipFreeBuild(string workingFolder, string outputName)
        {
            _Writer.WriteLine("Zipping up Free Build");
            _Writer.WriteLine("Source Folder = " + workingFolder);
            _Writer.WriteLine("Output = " + outputName);
            using (ZipFile mainZip = new ZipFile())
            {
                mainZip.AddDirectory(workingFolder + "\\Full\\src", "src");
                mainZip.AddFile(workingFolder + "\\Full\\BVSoftware.CreateStoreCore.dll", "");
                mainZip.AddFile(workingFolder + "\\Full\\CreateNewStore.exe", "");
                mainZip.AddFile(workingFolder + "\\Full\\CreateNewStoreCmd.exe", "");
                mainZip.AddFile(workingFolder + "\\Full\\Instructions.rtf", "");
                mainZip.Comment = "This zip was created at " + System.DateTime.Now.ToString("G");
                mainZip.Save(workingFolder + "\\" + outputName);
            }
            _Writer.WriteLine("Generating Hash for Zip...");
            string hash = HashTools.GetSHA1HashForFile(workingFolder + "\\" + outputName);

            File.WriteAllText(workingFolder + "\\" + outputName + ".sha1.txt", hash);
            _Writer.WriteLine("Finished Zipping Free Build");
        }
Example #2
0
        public void ZipWebPlatformInstaller(string workingFolder, string outputName)
        {
            _Writer.WriteLine("Zipping up Web Platform Installer Build");
            _Writer.WriteLine("Source Folder = " + workingFolder);
            _Writer.WriteLine("Output = " + outputName);
            using (ZipFile mainZip = new ZipFile())
            {
                mainZip.AddDirectory(workingFolder + "\\Full\\src\\MerchantTribeStore", "MerchantTribeStore");
                mainZip.AddFile(workingFolder + "\\Full\\src\\Manifest.xml", "");
                mainZip.AddFile(workingFolder + "\\Full\\src\\Parameters.xml", "");
                mainZip.AddFile(workingFolder + "\\Full\\src\\CreateTables.sql", "");
                mainZip.AddFile(workingFolder + "\\Full\\src\\CreateProcedures.sql", "");
                mainZip.AddFile(workingFolder + "\\Full\\src\\PopulateData.sql", "");
                mainZip.AddFile(workingFolder + "\\Full\\src\\UserAccount.sql", "");
                mainZip.Comment = "This zip was created at " + System.DateTime.Now.ToString("G");
                mainZip.Save(workingFolder + "\\" + outputName);
            }
            _Writer.WriteLine("Generating Hash for Zip...");
            string hash = HashTools.GetSHA1HashForFile(workingFolder + "\\" + outputName);

            File.WriteAllText(workingFolder + "\\" + outputName + ".sha1.txt", hash);
            _Writer.WriteLine("Finished Zipping Web Platform Installer Build");
        }