update update path
parent
a3f1926338
commit
8c50e01add
|
|
@ -46,6 +46,7 @@ namespace UnityMcpBridge.Editor.Helpers
|
||||||
|
|
||||||
if (IsNewerVersion(latestVersion, installedVersion))
|
if (IsNewerVersion(latestVersion, installedVersion))
|
||||||
{
|
{
|
||||||
|
Debug.Log($"is newer version");
|
||||||
UpdateServer(saveLocation);
|
UpdateServer(saveLocation);
|
||||||
}
|
}
|
||||||
else { }
|
else { }
|
||||||
|
|
@ -163,9 +164,8 @@ namespace UnityMcpBridge.Editor.Helpers
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static void UpdateServer(string location)
|
private static void UpdateServer(string location)
|
||||||
{
|
{
|
||||||
// Pull latest changes in the src directory
|
Debug.Log("updating server");
|
||||||
string serverDir = Path.Combine(location, ServerFolder, "src");
|
RunCommand("git", $"pull origin {BranchName}", workingDirectory: location);
|
||||||
RunCommand("git", $"pull origin {BranchName}", workingDirectory: serverDir);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue