Repository navigation
fix: clear KEY_MISMATCH error and absolute package path (1.2.1) - #2
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes to
generate --json, released as 1.2.1.Clear error when the device is keyed for another app
Roku signs packages with the key it was last rekeyed with. If the device still holds another app's key (for example because the rekey was skipped), signing fails with the device's own text,
Failed: Invalid Password.. That reads like a wrong developer password. On top of that, the hint pointed at--package-onlyeven when it wasn't used.Now:
KEY_MISMATCH, with the message "The device is keyed for a different app, so it rejected <project>'s sign key." The hint depends on how the run was started:--package-onlywas actually used.Reproduced on a real Roku: a device keyed for CNBC, then
generate gotham --skip-rekey. Before this fix the result wasSIGN_FAILED "Failed: Invalid Password.". Now it isKEY_MISMATCH.Absolute package path
This fix was pushed to #1 after that PR was squash-merged, so it never reached
mainor 1.2.0.packagePathin the result is now always absolute, even when the project's output path is relative (./output/x.pkg). Tools that open the file, like Roku Dev Studio's "Reveal in Finder", need the absolute path.Testing
npm test: 33/33 pass. There are new tests for both key-mismatch hints, the narrowed Package only hint, and the absolute path.KEY_MISMATCH.After merging, release
v1.2.1to publish.