コード例 #1
0
        public ActionResult GetPublishInfoForGrid(PublishConditon publishConditon)
        {
            var dict = PublishUtils.GetPublishInfoForGrid(this.dbContext, publishConditon);
            var json = Newtonsoft.Json.JsonConvert.SerializeObject(dict, new CustomNullableDateTimeConverter());

            return(Content(json));
        }
コード例 #2
0
        public ActionResult GetPublish()
        {
            var list = PublishUtils.GetPublishInfoForMap();
            var json = Newtonsoft.Json.JsonConvert.SerializeObject(list, new CustomNullableDateTimeConverter());

            return(Content(json));
        }
コード例 #3
0
    static void PerformOpenConfig()
    {
        string path = PublishUtils.GetPublishConfigDir();

        path = path.Replace("/", "\\");
        System.Diagnostics.Process.Start("explorer", "/n, " + path);
    }
コード例 #4
0
    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);
    }
コード例 #5
0
        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));
        }
コード例 #6
0
        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));
        }
コード例 #7
0
    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;
    }
コード例 #8
0
    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);
    }
コード例 #9
0
 /// <summary>
 /// 发布完成,清理工作
 /// </summary>
 public void OnPublishComplete()
 {
     PublishUtils.WritePlatformConfig(m_PlatformConfig);
 }
コード例 #10
0
 public void Setup()
 {
     m_PlatformConfig = PublishUtils.ReadPlatformConfig();
 }