public void CopyFreeFiles(string workingFolder, string destinationFolder) { FileTools.RemoveFile(destinationFolder + "\\MerchantTribeStore\\BVAdmin\\SetupWizard\\Eula.txt", _Writer); FileTools.SingleFileCopy("App\\MerchantTribeStore\\BVAdmin\\SetupWizard\\Eula-Free.txt", destinationFolder + "\\MerchantTribeStore\\BVAdmin\\SetupWizard\\Eula.txt", _Writer); string configFile = destinationFolder + "\\MerchantTribeStore\\Web.config"; PackagingUpdateConfigForFree(configFile); }
private void PackageApp(string destinationFolder) { _Writer.WriteLine("Copying App Files to Output"); List <string> foldersToIgnoreDuringCopy = new List <string>(); foldersToIgnoreDuringCopy.Add("obj"); foldersToIgnoreDuringCopy.Add("debug"); foldersToIgnoreDuringCopy.Add("release-hostedstaging"); foldersToIgnoreDuringCopy.Add("release-hostedproduction"); foldersToIgnoreDuringCopy.Add("release-source"); // keep bin folder off ignore list so that bin from web app is copied FileTools.FileCopyNoBackup("App\\MerchantTribeStore", destinationFolder + "\\MerchantTribeStore", _Writer, foldersToIgnoreDuringCopy); // Add bin folder so source is smaller foldersToIgnoreDuringCopy.Add("bin"); FileTools.FileCopyNoBackup("App\\lib", destinationFolder + "\\lib", _Writer, foldersToIgnoreDuringCopy); FileTools.FileCopyNoBackup("App\\packages", destinationFolder + "\\packages", _Writer, foldersToIgnoreDuringCopy); FileTools.FileCopyNoBackup("App\\src", destinationFolder + "\\src", _Writer, foldersToIgnoreDuringCopy); FileTools.SingleFileCopy("App\\MerchantTribeStore.sln", destinationFolder + "\\MerchantTribeStore.sln", _Writer); // Copy Web Platform Installer Files _Writer.WriteLine("Copying Web Platform Installer Files"); FileTools.SingleFileCopy("Installer\\MicrosoftWebDeploy\\Manifest.xml", destinationFolder + "\\Manifest.xml", _Writer); FileTools.SingleFileCopy("Installer\\MicrosoftWebDeploy\\parameters.xml", destinationFolder + "\\Parameters.xml", _Writer); FileTools.SingleFileCopy("App\\MerchantTribeStore\\BVAdmin\\SqlScripts\\Full\\CreateTables.sql", destinationFolder + "\\CreateTables.sql", _Writer); FileTools.SingleFileCopy("App\\MerchantTribeStore\\BVAdmin\\SqlScripts\\Full\\CreateProcedures.sql", destinationFolder + "\\CreateProcedures.sql", _Writer); FileTools.SingleFileCopy("App\\MerchantTribeStore\\BVAdmin\\SqlScripts\\Full\\PopulateData.sql", destinationFolder + "\\PopulateData.sql", _Writer); FileTools.SingleFileCopy("App\\MerchantTribeStore\\BVAdmin\\SqlScripts\\Full\\UserAccount.sql", destinationFolder + "\\UserAccount.sql", _Writer); // Create placeholder for "Sites" _Writer.WriteLine("Creating placeholder for sites at " + destinationFolder + "\\MerchantTribeStore\\images\\sites\\placeholder.txt"); FileTools.CreateAndCheckDirectory(destinationFolder + "\\MerchantTribeStore\\images\\sites"); File.WriteAllText(destinationFolder + "\\MerchantTribeStore\\images\\sites\\placeholder.txt", "This is a placeholder"); // Clean Unwanted Files _Writer.WriteLine("Cleaning Unwanted Files"); //FileTools.RemoveDirectory(destinationFolder + "\\src\\BVSoftware.AcumaticaTools", true, _Writer); //FileTools.RemoveDirectory(destinationFolder + "\\src\\BVSoftware.AcumaticaTools.Console", true, _Writer); //FileTools.RemoveDirectory(destinationFolder + "\\src\\BVSoftware.Shipping.FedEx", true, _Writer); FileTools.RemoveFile(destinationFolder + "\\MerchantTribeStore\\Web.Debug.config", _Writer); FileTools.RemoveFile(destinationFolder + "\\MerchantTribeStore\\Web.Release.config", _Writer); FileTools.RemoveFile(destinationFolder + "\\MerchantTribeStore\\Web.Release-Hosted.config", _Writer); FileTools.RemoveFile(destinationFolder + "\\MerchantTribeStore\\Web.Release-HostedStaging.config", _Writer); FileTools.RemoveFile(destinationFolder + "\\MerchantTribeStore\\Web.Release-Source.config", _Writer); FileTools.RemoveFile(destinationFolder + "\\MerchantTribeStore\\MerchantTribeStore.csproj.orig", _Writer); _Writer.WriteLine("Updating Config Files"); PackagingUpdateConfig(destinationFolder + "\\MerchantTribeStore\\Web.config"); _Writer.WriteLine("Finished Packaging App"); }
private void PackageInstaller(string destinationFolder) { _Writer.WriteLine("Packaging Installer"); FileTools.SingleFileCopy("Installer\\CreateNewStore\\bin\\Release\\CreateNewStore.exe", destinationFolder + "\\CreateNewStore.exe", _Writer); FileTools.SingleFileCopy("Installer\\CreateNewStore\\bin\\Release\\BVSoftware.CreateStoreCore.dll", destinationFolder + "\\BVSoftware.CreateStoreCore.dll", _Writer); FileTools.SingleFileCopy("Installer\\CreateNewStore\\bin\\Release\\Instructions.rtf", destinationFolder + "\\Instructions.rtf", _Writer); FileTools.SingleFileCopy("Installer\\CreateNewStoreCmd\\bin\\Release\\CreateNewStoreCmd.exe", destinationFolder + "\\CreateNewStoreCmd.exe", _Writer); _Writer.WriteLine("Creating src folder to hold output files"); Directory.CreateDirectory(destinationFolder + "\\src"); _Writer.WriteLine("Finished Packaging Intaller"); }