/// <summary> /// 构建热更DLL文件 /// </summary> public void BuildDll() { if (Copy2DllProj()) { var cmd = new DllBuildCommand(_cfg.resDir, _cfg.devenvPath, _cfg.ilProjCsprojPath); cmd.Execute(); } }
/// <summary> /// 构建热更DLL文件 /// </summary> public void BuildDll(Action onBuildSuccess, Action onBuildFail) { var cmd = new DllBuildCommand(_cfg.ilScriptDir, _cfg.resDir); cmd.onFinished += (DllBuildCommand self, bool isSuccess) => { if (isSuccess) { //继续打包 onBuildSuccess?.Invoke(); } else { onBuildFail?.Invoke(); } }; cmd.Execute(); }
/// <summary> /// 构建热更DLL文件 /// </summary> void BuildDll(Action onBuildSuccess, Action onBuildFail) { var cmd = new DllBuildCommand(ZeroEditorConst.HOT_SCRIPT_ROOT_DIR, ZeroEditorConst.DLL_PUBLISH_DIR); cmd.onFinished += (DllBuildCommand self, bool isSuccess) => { if (isSuccess) { //继续打包 onBuildSuccess?.Invoke(); } else { onBuildFail?.Invoke(); } }; cmd.Execute(); }