public ActionResult GetPublishInfoForGrid(PublishConditon publishConditon) { var dict = PublishUtils.GetPublishInfoForGrid(this.dbContext, publishConditon); var json = Newtonsoft.Json.JsonConvert.SerializeObject(dict, new CustomNullableDateTimeConverter()); return(Content(json)); }
public ActionResult GetPublish() { var list = PublishUtils.GetPublishInfoForMap(); var json = Newtonsoft.Json.JsonConvert.SerializeObject(list, new CustomNullableDateTimeConverter()); return(Content(json)); }
static void PerformOpenConfig() { string path = PublishUtils.GetPublishConfigDir(); path = path.Replace("/", "\\"); System.Diagnostics.Process.Start("explorer", "/n, " + path); }
static void ShowWindow(ePublishPlatformType type) { PublishManager.Instance.Setup(); string title_name = PublishUtils.GetPlatformNameByType(type); PublishWindow abWindow = EditorWindow.GetWindowWithRect <PublishWindow>(new Rect(0, 0, 1000, 800), false, title_name, true); abWindow.Setup(type); }
public ActionResult DeletePublish(PublishedDetail publishedDetail) { ReturnObject ro = null; try { PublishUtils.DeletePublish(this.dbContext, publishedDetail); ro = new ReturnObject(); } catch (Exception ex) { ro = new ReturnObject(ex.Message); } return(Json(ro)); }
public ActionResult SavePublish() { ReturnObject ro = null; try { var json = this.Request.Form["json"]; PublishUtils.SavePublish(this.dbContext, json); ro = new ReturnObject(); } catch (Exception ex) { ro = new ReturnObject(ex.Message); } return(Json(ro)); }
public void ResetData() { m_CachePlatformInfo = new PublishCachePlatformSet(); m_CacheChannelInfo = new PublishCacheChannelSet(); m_PlatformConfig = PublishUtils.ReadPlatformConfig(); OrientationIndex = 3; RenderPathIndex = 2; GraphicsAPIAndIndex = 1; GraphicsAPIIOSIndex = 1; GraphicsAPIWinIndex = 1; GraphicsAPIWebIndex = 0; ScriptBackemdIndex = 1; NetLevelIndex = 1; AndroidDeviceIndex = 1; IOSDeviceIndex = 2; IOSSDKIndex = 0; IOSOptLevelIndex = 0; InstallLocationIndex = 2; MinAndroidSDK = 1; StripLevel = 3; }
public void Setup(ePublishPlatformType type) { Log.Debug("[publish]打包平台:" + PublishUtils.GetPlatformNameByType(type)); m_PlatformType = type; m_CachePlatformInfo = PublishManager.Instance.GetCachaPlatformConfig(type); if (m_CachePlatformInfo == null) { Log.Error("[publish]平台缓存读取错误:" + type); Close(); return; } m_PlatformConfig = PublishManager.Instance.GetPlatformConfig(type); if (m_PlatformConfig == null) { Log.Error("[publish]平台配置表信息读取错误:" + type); Close(); return; } m_PublishPath = PublishUtils.GetPublishPath(m_PlatformType); }
/// <summary> /// 发布完成,清理工作 /// </summary> public void OnPublishComplete() { PublishUtils.WritePlatformConfig(m_PlatformConfig); }
public void Setup() { m_PlatformConfig = PublishUtils.ReadPlatformConfig(); }