Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2988

Add a ./cordova/lib/install-device project-level helper script

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0
    • cordova-cli
    • None

    Description

      install-device [--target=id]
      

      Installs a build of the app to an available device.

      If --target is specified, attempts to install the app to the device identified by id. If the attempt fails, the script will error out with an appropriate error message and exit with code 2.

      If no --target is specified, follows this multi-device flow:

      1. Are there any devices available, i.e. connected? (use list-devices CB-2972 to determine this). If so, target the first one, otherwise continue.
      2. Print an error message and exit with code 2.

      If the application is not compiled/built yet, the script will error out with an appropriate error message and exit with code 2.

      Attachments

        Issue Links

          Activity

            People

              lorin.beer Lorin Beer
              filmaj Filip Maj
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: