Closed erhorim closed 12 years ago
what is -b ? typo? or do you mean buildId?
-b is the short form for --buildId
See bbwp usage info:
-b, --buildId
I don't believe this existed in previous bbwp's. Any idea why this was added?
@jkeshavarzi/ @kwhatmough might be able to shed some light on why this was added?
I basically coded signing in such a way that it only tries to sign when 3 conditions are met.
1) signing keys were found 2) password was provided (-g) 3) buildId was specified (--buildId or 4rth digit of version)
If we don't have the buildID then we don't bother to sign. I coded it this way because i thought it made the most sense.
If this is undesired [@kwallis], i can make the necessary code changes. (should be an easy fix)
What is -b? It seems new for this release.
-b is the same as --buildId
This is just the way the node module we use for command line stuff works. The only way i was able to use a word as a command line parameter is with two dashes. (--) and single character commands are one dash. So the result is -b or --buildId for specifying build ids via command line.
that makes sense, also is a lot like other command line tools.
Ken Wallis
Product Manager – BlackBerry WebWorks
Research In Motion
(905) 629-4746 x14369
From: Nukul Bhasin [reply@reply.github.com] Sent: Monday, April 16, 2012 3:18 PM To: Ken Wallis Subject: Re: [BB10-Webworks-Packager] No error if signing with -g but no -b, and version="x.x.x" (#88)
that makes sense, also is a lot like other command line tools.
Reply to this email directly or view it on GitHub: https://github.com/blackberry/BB10-Webworks-Packager/issues/88#issuecomment-5160111
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
I am confused, is this a typo or the interface is wrong?
@kwallis and I had a discussion about correct behaviour here. It is unfair to deprecate -buildId (single dash) and not really inform the user properly.
spawned issue blackberry/BB10-Webworks-Packager#93
For this discussion- We want to throw an error if -g is specified with not --buildId or -b
Acceptance criteria-
Accpetance criteria has been updated in the opening comment on the issue as well
We coded it this way because of a limitation on the node module we are using. However, we can probably code a workaround to support -buildId and internally convert it to --buildId so our node command-line module is happy.
I think acceptance criteria number 2 should say that no signing password was provided?
----- Original Message ----- From: Nukul Bhasin [mailto:reply@reply.github.com] Sent: Monday, April 16, 2012 05:55 PM To: Ken Wallis Subject: Re: [BB10-Webworks-Packager] No error if signing with -g but no -b, and version="x.x.x" (#88)
@kwallis and I had a discussion about correct behaviour here. It is unfair to deprecate -buildId (single dash) and not really inform the user properly.
spawned issue blackberry/BB10-Webworks-Packager#93
For this discussion- We want to throw an error if -g is specified with not --buildId or -b
Acceptance criteria-
Accpetance criteria has been updated in the opening comment on the issue as well
Reply to this email directly or view it on GitHub: https://github.com/blackberry/BB10-Webworks-Packager/issues/88#issuecomment-5163578
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
Understood, but we can't compromise user experience due to a technology choice we made.
----- Original Message ----- From: James Keshavarzi [mailto:reply@reply.github.com] Sent: Monday, April 16, 2012 06:16 PM To: Ken Wallis Subject: Re: [BB10-Webworks-Packager] No error if signing with -g but no -b, and version="x.x.x" and vice versa (no -g with a -buildId) (#88)
We coded it this way because of a limitation on the node module we are using. However, we can probably code a workaround to support -buildId and internally convert it to --buildId so our node command-line module is happy.
Reply to this email directly or view it on GitHub: https://github.com/blackberry/BB10-Webworks-Packager/issues/88#issuecomment-5163950
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
Yup, no problem. I will figure out a solution tomorrow.
----- Original Message ----- From: Ken Wallis [mailto:reply@reply.github.com] Sent: Monday, April 16, 2012 06:55 PM To: James Keshavarzi Subject: Re: [BB10-Webworks-Packager] No error if signing with -g but no -b, and version="x.x.x" and vice versa (no -g with a -buildId) (#88)
Understood, but we can't compromise user experience due to a technology choice we made.
----- Original Message ----- From: James Keshavarzi [mailto:reply@reply.github.com] Sent: Monday, April 16, 2012 06:16 PM To: Ken Wallis Subject: Re: [BB10-Webworks-Packager] No error if signing with -g but no -b, and version="x.x.x" and vice versa (no -g with a -buildId) (#88)
We coded it this way because of a limitation on the node module we are using. However, we can probably code a workaround to support -buildId and internally convert it to --buildId so our node command-line module is happy.
Reply to this email directly or view it on GitHub: https://github.com/blackberry/BB10-Webworks-Packager/issues/88#issuecomment-5163950
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
Reply to this email directly or view it on GitHub: https://github.com/blackberry/BB10-Webworks-Packager/issues/88#issuecomment-5164532
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
Defect fixed by blackberry-webworks/BB10-Webworks-Packager#15
Description: In config.xml, specify version="x.x.x" in
<widget>
. In cmdline, bbwp app.zip -gUnsigned bar is produced but no error msg for missing -b
Acceptance criteria-