//------------------------------------------------------------------------------------------------------ //EXPERIMENT! private void cmdMacBuildPatchesFromSrc_Click(object sender, EventArgs e) { //EXPERIMENT! string srcRootDir = @"D:\projects\cef_binary_3.3071.1647.macos\tests\cefclient"; PatchBuilder builder = new PatchBuilder(new string[] { srcRootDir, @"D:\projects\cef_binary_3.3071.1647.macos\tests\shared" }); builder.MakePatch(); //2. save patch to... string saveFolder = "d:\\WImageTest\\cefbridge_patches_mac"; builder.Save(saveFolder); ////3. test load those patches //PatchBuilder builder2 = new PatchBuilder(srcRootDir); //builder2.LoadPatchesFromFolder(saveFolder); //---------- //copy extension code FolderUtils.CopyFileInFolder(saveFolder, @"D:\projects\Kneadium\NativePatcher\cefbridge_patches_mac" ); //copy ext from actual src FolderUtils.CopyFileInFolder(srcRootDir + "\\myext", @"D:\projects\Kneadium\NativePatcher\BridgeBuilder\Patcher_ExtCode_mac\myext"); }
private void cmdCreatePatchFiles_Click(object sender, EventArgs e) { //string srcRootDir = @"D:\projects\cef_binary_3.2526.1366" + "\\cefclient"; //2526.1366 //string srcRootDir = "d:\\projects\\CefBridge\\cef3\\cefclient"; //string srcRootDir = "d:\\projects\\CefBridge\\cef3\\cefclient"; //1. analyze modified source files, in source folder //string srcRootDir = @"D:\projects\cef_binary_3.2883.1548\tests\cefclient"; string srcRootDir = @"D:\projects\cef_binary_3.2883.1553\tests\cefclient"; PatchBuilder builder = new PatchBuilder(new string[] { srcRootDir, @"D:\projects\cef_binary_3.2883.1553\tests\shared" }); builder.MakePatch(); //2. save patch to... string saveFolder = "d:\\WImageTest\\cefbridge_patches"; builder.Save(saveFolder); ////3. test load those patches //PatchBuilder builder2 = new PatchBuilder(srcRootDir); //builder2.LoadPatchesFromFolder(saveFolder); //---------- //copy extension code CopyFileInFolder(saveFolder, @"D:\projects\CefBridge\NativePatcher\cefbridge_patches" ); //copy ext from actual src CopyFileInFolder(srcRootDir + "\\myext", @"D:\projects\CefBridge\NativePatcher\BridgeBuilder\Patcher_ExtCode\myext"); }
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"); // }