【工具】热更和打包工具完成后自动提交
parent
41dfe3f056
commit
ab11a7c233
|
@ -405,7 +405,7 @@ public class AutoPack : EditorWindow
|
||||||
"git add ." + printlog,
|
"git add ." + printlog,
|
||||||
"echo git commit -m 'AutoPack:" + PackConfig[index][0] + "-" + PackTime + "-" + PackConfig[index][2] + ".apk'" + printlog,
|
"echo git commit -m 'AutoPack:" + PackConfig[index][0] + "-" + PackTime + "-" + PackConfig[index][2] + ".apk'" + printlog,
|
||||||
"git commit -m 'AutoPack:" + PackConfig[index][0] + "-" + PackTime + "-" + PackConfig[index][2] + ".apk'" + printlog,
|
"git commit -m 'AutoPack:" + PackConfig[index][0] + "-" + PackTime + "-" + PackConfig[index][2] + ".apk'" + printlog,
|
||||||
|
"git push",
|
||||||
};
|
};
|
||||||
ProcessUtil.ProcessCommand(_MomPackPath + PackConfig[index][2], commands);
|
ProcessUtil.ProcessCommand(_MomPackPath + PackConfig[index][2], commands);
|
||||||
EditorUtility.ClearProgressBar();
|
EditorUtility.ClearProgressBar();
|
||||||
|
|
|
@ -501,6 +501,7 @@ namespace GameEditor.FrameTool
|
||||||
EditorUtility.DisplayProgressBar("正在提交到GIT:", commitName, 1f);
|
EditorUtility.DisplayProgressBar("正在提交到GIT:", commitName, 1f);
|
||||||
ProcessUtil.ProcessCommand(toPath, "git add .");
|
ProcessUtil.ProcessCommand(toPath, "git add .");
|
||||||
ProcessUtil.ProcessCommand(toPath, "git commit -m " + commitName);
|
ProcessUtil.ProcessCommand(toPath, "git commit -m " + commitName);
|
||||||
|
ProcessUtil.ProcessCommand(toPath, "git push");
|
||||||
EditorUtility.ClearProgressBar();
|
EditorUtility.ClearProgressBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -558,7 +559,6 @@ namespace GameEditor.FrameTool
|
||||||
string flushCommand = string.Format("python Flush.py {0}>>{1}", hfs.cdn_version.resUrl, hfs.path_cdn_setting + "__HotFixLog/" + logName + ".log");
|
string flushCommand = string.Format("python Flush.py {0}>>{1}", hfs.cdn_version.resUrl, hfs.path_cdn_setting + "__HotFixLog/" + logName + ".log");
|
||||||
log.Add("Flush COMMAND: " + flushCommand);
|
log.Add("Flush COMMAND: " + flushCommand);
|
||||||
ProcessUtil.ProcessCommand(toolsDir, flushCommand);
|
ProcessUtil.ProcessCommand(toolsDir, flushCommand);
|
||||||
|
|
||||||
// write log
|
// write log
|
||||||
EditorUtility.DisplayProgressBar("正在生成Log文件:", logName, 1f);
|
EditorUtility.DisplayProgressBar("正在生成Log文件:", logName, 1f);
|
||||||
WriteLog(hfs.path_cdn_setting + "__HotFixLog", logName, log.ToArray());
|
WriteLog(hfs.path_cdn_setting + "__HotFixLog", logName, log.ToArray());
|
||||||
|
@ -568,6 +568,7 @@ namespace GameEditor.FrameTool
|
||||||
EditorUtility.DisplayProgressBar("正在提交到GIT:", commitName, 1f);
|
EditorUtility.DisplayProgressBar("正在提交到GIT:", commitName, 1f);
|
||||||
ProcessUtil.ProcessCommand(hfs.path_cdn_setting, "git add .");
|
ProcessUtil.ProcessCommand(hfs.path_cdn_setting, "git add .");
|
||||||
ProcessUtil.ProcessCommand(hfs.path_cdn_setting, "git commit -m " + commitName);
|
ProcessUtil.ProcessCommand(hfs.path_cdn_setting, "git commit -m " + commitName);
|
||||||
|
ProcessUtil.ProcessCommand(hfs.path_cdn_setting, "git push");
|
||||||
EditorUtility.ClearProgressBar();
|
EditorUtility.ClearProgressBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue