using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Diagnostics;
using UnityEditor.PackageManager;
using System;
public class SVNToolByUnity:Editor
{
static string curProjectPath = System.Environment.CurrentDirectory;
[MenuItem(“SVN更新/更新Unity客户端工程”)]
static void UpdateSVN()
{
// UnityEngine.Debug.LogError(System.Environment.CurrentDirectory);
RunCmd(“TortoiseProc.exe”, string.Format("/command:update /path:"{0}\{1}" /closeonend:0", curProjectPath, “Assets”));
}
[MenuItem("SVN更新/更新全部工程")]
static void UpdateAllSVN()
{
RunCmd("TortoiseProc.exe", string.Format("/command:update /path:\"{0}\\{1}\" /closeonend:0", curProjectPath.Replace("/", "\\") + "/../..", ""));
}
private static bool RunCmd(string cmdExe, string cmd