为了方便开发时更新资源,可以做一些简化操作的小工具,提高效率。
由于项目中采用的是SVN来进行版本控制,所以我这里是加入了svn更新和提交文件的小工具。
using System.Collections.Generic;
using System.IO;
using UnityEditor;
public class SVNUtils
{
// 根据电脑具体的盘符来定义
private static List<string> drives = new List<string>() {
"C:", "D:", "E:", "F:" };
private static string svnPath = @"\Program Files\TortoiseSVN\bin\";
private static string svnProc = @"TortoiseProc.exe";
private static string svnProcPath = "";
// 需要更新的目录(代码、协议、配置、UI等),根据自己的项目情况来配置好
private static string Path_SVNProject = "E:/SVNProjectName";
private static string Path_Protocol = "E:/Protocol";
private static string Path_Design = "E:/Design";
private static string Path_ArtUI = "E:/ArtUI";
[