unity3D技术分享

Unity使用代码工具提交和更新文件到SVN

2019-03-22  本文已影响7人  好怕怕
image.png image.png image.png

可以根据自己的需求扩展不同的路径

    [MenuItem("SVN/Update")]
    public static void SvnUpdate()
    {
        Process.Start("TortoiseProc.exe", "/command:update /path:" + Application.dataPath + " /closeonend:0");
    }

    [MenuItem("SVN/Plugins Commit")]
    public static void SvnPluginsCommit()
    {
        Process.Start("TortoiseProc.exe", "/command:commit /path:" + Application.dataPath + "/Plugins /closeonend:0");
    }

    [MenuItem("SVN/Assets Commit")]
    public static void SvnAssetsCommit()
    {
        Process.Start("TortoiseProc.exe", "/command:commit /path:" + Application.dataPath + " /closeonend:0");
    }
上一篇 下一篇

猜你喜欢

热点阅读