Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add commands to rekey device and create packages (#509)
* Add ability to capture device screenshots * Add ability to capture device screenshots 1. Added support to show preview of screenshot 2. Fixed a linter issue * Feature request: add ability to rekey/sign apps Added support for the following commands: 1. Rekey Device: Rekey specified device based on the signing password ("brightscript.remoteControl.signingPassword") and package file ("brightscript.remoteControl.signedPackagePath") provided. 2. Create Package: This will present user a list of available launch configs to choose from. Once selected it will create a .zip file and .pkg file based on the config and will save them to the ${workspacefolder}/out 3. Rekey Device and Create Package: This will first rekey device and then create package for the selected launch config * remove stale code * remove redundent code * TBD-126 Updates based on below reqs: rekey: a) "How do you want to enter your stuff?" - "Pick from json file" - "Enter manually" b) prompt for host (prepopulated from json above if possible) c) Prompt for password (prepopulated from json above if possible) d) Prompt for signed package path (prepopulated from json above if available) package: a) "What should we package?" - "Pick a folder" - "Pick from a launch.json" - show a launch.json option picker - "Pick a rokudeploy.json" - b) prompt for host (prepopulated from json above if possible) c) Prompt for password (prepopulated from json above if possible) d) Prompt for signed package path (prepopulated from json above if available) e) Show a summary of stuff, ask to click "Yes, do it" or "No, something's wrong, cancel". * TBD-126 * Update BrightScriptCommands.ts * Refined the flow a bit * TBD-126: 1. Added support to show existing pkg file for rekey confirmation 2. Updated create package flow to confirm all the entries with user and ti update - if needed * TBD-126 Added support to maintain status of previously selected host and config * TBD-126 updated rekey and create package flow * Update RekeyAndPackageCommand.ts 1. updated outfile name to be the source folder name only 2. Fixed a bug for outdir that only supported mac paths 3. Added title to all inputboxes 4. Added a prompt for rootDir incase it is missing during create package 5. Added outfile path in dialog upon successful packaging * TBD-126 Added support to show package path in successful dialog and an option to open package in file explorer * Use `open` to open folder instead of custom function * Normalize a few file paths * Better rekeySignedPackage handling when empty string * simplify default config * Show .pkg in summary * Use correct file paths in more dialogs * Remove unused funcs in BrightScriptCommands.ts --------- Co-authored-by: Bronley Plumb <[email protected]>
- Loading branch information