示例#1
0
        private static void RunCommand()
        {
            if (!String.IsNullOrEmpty(Device) && !Device.Contains("All_iOS_On"))
            {
                Deployer.DeviceId = Device;
            }

            bool bResult = true;

            switch (Command)
            {
            case "backup":
                bResult = Deployer.BackupFiles(Bundle, FileList.ToArray());
                break;

            case "deploy":
                bResult = Deployer.InstallFilesOnDevice(Bundle, Manifest);
                break;

            case "install":
                bResult = Deployer.InstallIPAOnDevice(ipaPath);
                break;

            case "enumerate":
                Deployer.EnumerateConnectedDevices();
                break;
            }

            Program.ExitCode = bResult ? 0 : 1;
        }
示例#2
0
        private static void RunCommand()
        {
            Deployer.DeviceId = Device;

            bool bResult = true;

            switch (Command)
            {
            case "backup":
                bResult = Deployer.BackupFiles(Bundle, FileList.ToArray());
                break;

            case "deploy":
                bResult = Deployer.InstallFilesOnDevice(Bundle, Manifest);
                break;

            case "install":
                bResult = Deployer.InstallIPAOnDevice(ipaPath);
                break;

            case "enumerate":
                Deployer.EnumerateConnectedDevices();
                break;

            case "listdevices":
                Deployer.ListDevices();
                break;

            case "listentodevice":
                Deployer.ListenToDevice(Device);
                break;
            }

            Program.ExitCode = bResult ? 0 : 1;
        }
 public bool InstallIPAOnDevice(string IPAPath)
 {
     return(Deployer.InstallIPAOnDevice(IPAPath));
 }