Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Highlighted
Developer
Posts: 50
Registered: ‎05-01-2013
My Device: Dev Alpha B - Dev Alpha C
My Carrier: Ooredoo
Accepted Solution

Problem while trying to sign my app

when I try to sign my app using command line 'blackberry-signer'

I got this error : command not recognized as an internal or external command !

 

can someone please tell me how to fix it ? Smiley Sad

---------------------------------------------------------------------------------------------
1. If any post helps you please thumb's up below .
2. Please resolve your thread by marking the post Solution which solved it for you !!
Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Problem while trying to sign my app

Are you running this from the bin subfolder of your SDK installation? Example:

C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.4.11\dependencies\tools\bin

 

By default, that folder is not added to the PATH of your command lines, so you will actually need to be in that folder in order for the command line to recognize the command.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Problem while trying to sign my app

2nd try at answering... (PC died)

 

I suggest using batch files and relative paths as this makes your life MUCH simpler

 

My build directory is C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.4.11\dependencies\bars

 

I open a command prompt there and use the following batch files

 

build.bat

..\..\bbwp %1.zip -d -v -g <signingKeyPass> -b %2

 

Drop the -v for release builds - I call that one rbuild.bat

 

Now simply by dropping newapp.zip in my bars directory I can build and sign it using the following command

 

build newapp 1

 

The 1 @ end is the build number

 

A variant is not signing for quick checks of new code

 

 

Similarly I use install scripts so when the build has worked I can put it on a device

 

instz.bat (install it in my Z10)

..\tools\bin\blackberry-deploy -installApp -device <IPAddress> -password <devicePass> device\%1.bar

 

For a simulator build replace device\%1.bar with simulator\%1.bar

 

This then lets you use something like

 

instz newapp

 

There are many things you can do simply by adapting these simple examples to do what you want that make development extremely rapid and easy

 

 

You can also automate debug token generation and installation and many other handy things

 

 




Click the like button if you find my posts useful!
New Developer
Posts: 7
Registered: ‎01-13-2013
My Device: Curve 9350
My Carrier: Vodafone

Re: Problem while trying to sign my app

[ Edited ]

To make the process of signing and building your BB app simpler you can use the BB graphical aid as well.