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 "copyfile": bResult = Deployer.CopyFileToDevice(Bundle, FileList[0], FileList[1]); 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 CopyFileToDevice(string BundleIdentifier, string SourceFile, string DestFile) { return(Deployer.CopyFileToDevice(BundleIdentifier, SourceFile, DestFile)); }