A game about forced loneliness, made by TACStudios
at master 25 lines 550 B view raw
1using System; 2using System.IO; 3 4using Codice.Utils; 5 6namespace Unity.PlasticSCM.Editor.Views.Welcome 7{ 8 static class GetInstallerTmpFileName 9 { 10 internal static string ForPlatform() 11 { 12 string fileName = Guid.NewGuid().ToString(); 13 14 if (PlatformIdentifier.IsWindows()) 15 fileName += ".exe"; 16 17 if (PlatformIdentifier.IsMac()) 18 fileName += ".pkg.zip"; 19 20 return Path.Combine( 21 Path.GetTempPath(), 22 fileName); 23 } 24 } 25}