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
Developer
eblade
Posts: 161
Registered: ‎02-08-2012
My Device: PlayBook

my dev tools are completely broken, please help?

Here is the bat file that I've been using successfully to package and deploy my app for the last many months:

 

cd app
del /q f:\src\gvoice\bin\blackberry\gvbb.zip
"c:\Program Files\7-Zip\7z.exe" u -xr!*.bat -xr!*.zip -xr!.git* f:\src\gvoice\bin\blackberry\gvbb.zip *
set JAVA_HOME="c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\jre"
"c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\bbwp" f:\src\gvoice\bin\blackberry\gvbb.zip -o f:\src\gvoice\bin\blackberry\tablet -d
rem "c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\bbwp" f:\src\gvoice\bin\blackberry\gvbb.zip -o f:\src\gvoice\bin\blackberry\phone -d
rem *** USB device install
call "c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\blackberry-tablet-sdk\bin\blackberry-deploy" -installApp -password a -device 169.254.0.1 -package f:\src\gvoice\bin\blackberry\tablet\gvbb.bar
rem *** Wifi device install
call "c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\blackberry-tablet-sdk\bin\blackberry-deploy" -installApp -password a -device 192.168.1.19 -package f:\src\gvoice\bin\blackberry\tablet\gvbb.bar
rem call "c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\blackberry-tablet-sdk\bin\blackberry-deploy" -installApp -password blackberry -device 192.168.109.128 -package f:\src\gvoice\bin\blackberry\tablet\gvbb.bar
cd ..

 

Today, it comes up with "[ERROR] The debug token pathname provided does not point to a file" .

 

Also, I've got a version of that batch file to use the BB10 tools:

 

cd app
del /q f:\src\gvoice\bin\blackberry\gvbbx.zip
"c:\Program Files\7-Zip\7z.exe" u -xr!*.bat -xr!*.zip -xr!.git* f:\src\gvoice\bin\blackberry\gvbbx.zip *
rem set JAVA_HOME="c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\jre"
rem "c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\bbwp" f:\src\gvoice\bin\blackberry\gvbbx.zip -o f:\src\gvoice\bin\blackberry\tablet -d
call "c:\program files (x86)\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.3.8\bbwp" f:\src\gvoice\bin\blackberry\gvbbx.zip -o f:\src\gvoice\bin\blackberry\bb10 -d
rem "c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\bbwp" f:\src\gvoice\bin\blackberry\gvbbx.zip -o f:\src\gvoice\bin\blackberry\phone -d
rem call "c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\blackberry-tablet-sdk\bin\blackberry-deploy" -installApp -password a -device 169.254.0.1 -package f:\src\gvoice\bin\blackberry\tablet\gvbbx.bar
call "c:\program files (x86)\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.3.8\dependencies\tools\bin\blackberry-deploy" -installApp -password a -device 192.168.1.19 -package f:\src\gvoice\bin\blackberry\bb10\device\gvbbx.bar
rem call "c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\blackberry-tablet-sdk\bin\blackberry-deploy" -installApp -password blackberry -device 192.168.109.128 -package f:\src\gvoice\bin\blackberry\gvbbx.bar
cd ..

 

comes up with:

 

"Info: Sending request: Install
Info: Action: Install
Info: File size: 2398480
Info: Installing ...
Info: Processing 2398480 bytes
actual_dname::
actual_id::
actual_version::
result::failure 881 application author does not match debug token author"

 

 

Developer
ddluk
Posts: 212
Registered: ‎10-02-2010
My Device: Z10 and Z30

Re: my dev tools are completely broken, please help?

Remove -d parameter because it's forcing you to use debug mode. You are also using tablet sdk to pack BB10 application which will not work.

 

You are also using the old webworks sdk.

Developer
eblade
Posts: 161
Registered: ‎02-08-2012
My Device: PlayBook

Re: my dev tools are completely broken, please help?

[ Edited ]

There may be some confusion there considering that i've got the new and the old sort of combined together with the previous version of hte ocmmand commented out in the new one. 

 

 cd app
del /q f:\src\gvoice\bin\blackberry\gvbbx.zip
"c:\Program Files\7-Zip\7z.exe" u -xr!*.bat -xr!*.zip -xr!.git* f:\src\gvoice\bin\blackberry\gvbbx.zip *
call "c:\program files (x86)\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.3.8\bbwp" f:\src\gvoice\bin\blackberry\gvbbx.zip -o f:\src\gvoice\bin\blackberry\bb10 -d
call "c:\program files (x86)\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.3.8\dependencies\tools\bin\blackberry-deploy" -installApp -password a -device 192.168.1.19 -package f:\src\gvoice\bin\blackberry\bb10\device\gvbbx.bar
cd ..

 

^^ here's the bb 10 script with the commented out commands removed.  I'm trying to run it in debug mode, intentionally. ?

 

 

Developer
ddluk
Posts: 212
Registered: ‎10-02-2010
My Device: Z10 and Z30

Re: my dev tools are completely broken, please help?

As I said you are using the old SDK. Current version is 1.0.4.7, you are using 1.0.3.8 so please update it:

 

https://developer.blackberry.com/html5/download/

Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C

Re: my dev tools are completely broken, please help?

I have three scripts (batch files) I use for builds

 

Examples...

 

I shove everything in (long path)

 

C:\Program Files (x86)\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.4.5\dependencies\tools\bin\bars

 

If I drop to a command prompt here I have a bat file called ibuild.bat which reads as follows

 

..\..\..\..\bbwp %1.zip -v -g Sqwijib0 -buildId %2

 

This allows me to type something like the following

 

ibuild fred 27

 

This means build fred.zip using a build id of 27

 

Next I have an installer called dabuild.bat

 

..\blackberry-deploy -installApp -device 192.168.xxx.xxx -password xxxxxxxx -package device\%1.bar

 

This is an extremely easy way to build and test

 

On top of these concepts I have a PHP script that automates everything for me




Click the like button if you find my posts useful!