Geen omschrijving
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GetInstallerTmpFileName.cs 550B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.IO;
  3. using Codice.Utils;
  4. namespace Unity.PlasticSCM.Editor.Views.Welcome
  5. {
  6. static class GetInstallerTmpFileName
  7. {
  8. internal static string ForPlatform()
  9. {
  10. string fileName = Guid.NewGuid().ToString();
  11. if (PlatformIdentifier.IsWindows())
  12. fileName += ".exe";
  13. if (PlatformIdentifier.IsMac())
  14. fileName += ".pkg.zip";
  15. return Path.Combine(
  16. Path.GetTempPath(),
  17. fileName);
  18. }
  19. }
  20. }