暫無描述
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.

LaunchInstaller.cs 643B

1234567891011121314151617181920212223
  1. using System.Diagnostics;
  2. using Codice.Utils;
  3. namespace Unity.PlasticSCM.Editor.Tool
  4. {
  5. internal static class LaunchInstaller
  6. {
  7. internal static Process ForPlatform(string installerPath)
  8. {
  9. if (PlatformIdentifier.IsMac())
  10. {
  11. return Process.Start(
  12. ToolConstants.Installer.INSTALLER_MACOS_OPEN,
  13. string.Format(ToolConstants.Installer.INSTALLER_MACOS_OPEN_ARGS, installerPath));
  14. }
  15. return Process.Start(
  16. installerPath,
  17. ToolConstants.Installer.INSTALLER_WINDOWS_ARGS);
  18. }
  19. }
  20. }