12-31-2012 09:44 PM
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-
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-
rem call "c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\blackberry-tablet-sdk\bin\blackberry-
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-
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-
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"
01-26-2013 10:23 AM
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.
01-26-2013 10:25 AM - edited 01-26-2013 10:27 AM
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. ?
01-26-2013 10:42 AM
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:
01-26-2013 04:43 PM
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