Files
NetCode/Library/PackageCache/com.unity.collab-proxy@1e5e48aff19d/Editor/Views/Welcome/GetInstallerTmpFileName.cs
T
2025-12-21 18:31:02 +02:00

26 lines
550 B
C#

using System;
using System.IO;
using Codice.Utils;
namespace Unity.PlasticSCM.Editor.Views.Welcome
{
static class GetInstallerTmpFileName
{
internal static string ForPlatform()
{
string fileName = Guid.NewGuid().ToString();
if (PlatformIdentifier.IsWindows())
fileName += ".exe";
if (PlatformIdentifier.IsMac())
fileName += ".pkg.zip";
return Path.Combine(
Path.GetTempPath(),
fileName);
}
}
}