private void cmdCreatePatchFiles_Click(object sender, EventArgs e) { //1. analyze modified source files, in source folder PatchBuilder builder = new PatchBuilder(new string[] { _cefSrcRootDir + @"\tests\cefclient", _cefSrcRootDir + @"\tests\shared" }); builder.MakePatch(); //2. save patch to... string newPatchFolder = _selectedPreSet.NewlyCreatedPatchSaveToFolder; builder.Save(newPatchFolder); ////---------------------------------- //3.1 copy newly generate patch to backup folder //this code will push to github *** //---------------------------------- string backup_NativePatcher = _selectedPreSet.Backup_NativePatcher_Folder; string backup_NativePatcher_BridgeBuilder_folder = _selectedPreSet.Backup_NativePatcher_BridgeBuilder; FolderUtils.CopyFileInFolder(newPatchFolder, backup_NativePatcher); //3.2 copy newly generate patch to backup folder //this code will push to github (same) FolderUtils.CopyFileInFolder( _cefSrcRootDir + @"\tests\cefclient\myext", backup_NativePatcher_BridgeBuilder_folder + @"\Patcher_ExtCode\myext"); //3.3 copy newly generate patch to backup folder //this code will push to github (same) FolderUtils.CopyFileInFolder( _cefSrcRootDir + @"\libcef_dll\myext", backup_NativePatcher_BridgeBuilder_folder + @"\Patcher_ExtCode_libcef_dll\myext"); //---------- //3.4 copy file by file //this code will push to github (same) FolderUtils.CopyFile(_cefSrcRootDir + "\\include\\cef_base.h", backup_NativePatcher_BridgeBuilder_folder + @"\Patcher_ExtCode_Others"); //3.5 //this code will push to github (same) FolderUtils.CopyFile(_cefSrcRootDir + "\\libcef_dll\\ctocpp\\ctocpp_ref_counted.h", backup_NativePatcher_BridgeBuilder_folder + @"\Patcher_ExtCode_Others"); //3.6 //this code will push to github (same) FolderUtils.CopyFile(_cefSrcRootDir + "\\libcef_dll\\cpptoc\\cpptoc_ref_counted.h", backup_NativePatcher_BridgeBuilder_folder + @"\Patcher_ExtCode_Others"); // }
private void cmdCopyDevSnap_Click(object sender, EventArgs e) { string snapBackupFolder = _selectedPreSet.Backup_NativePatcher_BridgeBuilder_DevSnapFolder; //check if we have snap folder, //if not => create it FolderUtils.CopyFolder(_cefSrcRootDir + "\\libcef_dll", snapBackupFolder); FolderUtils.CopyFolder(_cefSrcRootDir + "\\tests", snapBackupFolder); FolderUtils.CopyFolder(_cefSrcRootDir + "\\include", snapBackupFolder); //---------- //backup existing generated patch result string newPatchFolder = _selectedPreSet.NewlyCreatedPatchSaveToFolder; string devSnap_tempPatches = _selectedPreSet.Backup_NativePatcher_BridgeBuilder_DevSnapFolder_TempPatches; string backup_NativePatcher_BridgeBuilder_folder = _selectedPreSet.Backup_NativePatcher_BridgeBuilder; FolderUtils.CopyFileInFolder(newPatchFolder, devSnap_tempPatches); //3.2 copy newly generate patch to backup folder //this code will push to github (same) FolderUtils.CopyFileInFolder( _cefSrcRootDir + @"\tests\cefclient\myext", backup_NativePatcher_BridgeBuilder_folder + @"\Patcher_ExtCode\myext"); //3.3 copy newly generate patch to backup folder //this code will push to github (same) FolderUtils.CopyFileInFolder( _cefSrcRootDir + @"\libcef_dll\myext", backup_NativePatcher_BridgeBuilder_folder + @"\Patcher_ExtCode_libcef_dll\myext"); //---------- //3.4 copy file by file //this code will push to github (same) FolderUtils.CopyFile(_cefSrcRootDir + "\\include\\cef_base.h", backup_NativePatcher_BridgeBuilder_folder + @"\Patcher_ExtCode_Others"); //3.5 //this code will push to github (same) FolderUtils.CopyFile(_cefSrcRootDir + "\\libcef_dll\\ctocpp\\ctocpp_ref_counted.h", backup_NativePatcher_BridgeBuilder_folder + @"\Patcher_ExtCode_Others"); //3.6 //this code will push to github (same) FolderUtils.CopyFile(_cefSrcRootDir + "\\libcef_dll\\cpptoc\\cpptoc_ref_counted.h", backup_NativePatcher_BridgeBuilder_folder + @"\Patcher_ExtCode_Others"); }