Example #1
0
    /// <summary>
    /// 用public方便其他插件使用
    /// </summary>
    /// <param name="path"></param>
    static public void DoSvnCommit(string path)
    {
        UnityEngine.Debug.Log("Commit " + EditorUtil.PathAbsolute2Assets(path));
        string param = string.Format(@"/command:commit /path:""{0}"" /logmsg:"""" /notempfile /closeonend:0", path);

        UnityCallProcess.CallProcess("TortoiseProc.exe", param);
    }
    static private void ModifyIOS(string dirName)
    {
        string curDir    = Directory.GetCurrentDirectory();
        string toolsPath = curDir + "/iOSRes/";

        try
        {
            Directory.SetCurrentDirectory(toolsPath);
            UnityCallProcess.CallProcess("python.exe", string.Format("{0} {1}", toolsPath + "modify_ios.py", "project_name-" + dirName), false);
            Directory.SetCurrentDirectory(curDir);
        }
        catch (System.Exception ex)
        {
            UnityEngine.Debug.LogError(ex);
            Directory.SetCurrentDirectory(curDir);
        }
    }