Singularity/Library/PackageCache/com.unity.collab-proxy@2.0.3/Editor/PlasticSCM/Views/Welcome/GetInstallerTmpFileName.cs

26 lines
550 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
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);
}
}
}