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
ProfHawking
Posts: 46
Registered: ‎02-16-2011
My Device: 8300>9000>9700>9900>Z10

Re: How do you compile your app with WebWorks?

[ Edited ]

I did a similar thing to Heiko - wrote a batch script to make it easier.

Mine works a bit differently though instead of relying on the path it just goes to the directories.

 

 

:: ====== SETTINGS ======
SET playbookpw=playbook
SET playbookip=192.168.31.132
SET bbwpdir="C:\Program Files\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\"
SET deploydir="C:\Program Files\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\blackberry-tablet-sdk\bin\"

:: ====== RUN CODE ======
@echo off
CLS
echo --- Build and Deploy WebWorks App ---
ECHO.
SET /p package=Enter the name of the package:
ECHO.
SET workingdir=%~dp0
:: Find package file
IF EXIST %workingdir%%package%.zip (
CD %bbwpdir%
CALL bbwp "%~dp0%package%.zip" /o "%workingdir%"
IF EXIST "%workingdir%%package%.bar" (
CD %deploydir%
CALL blackberry-deploy -installApp -password %playbookpw% -device %playbookip% -package "%workingdir%%package%.bar"
DEL %workingdir%%package%.bar
) ELSE (
ECHO Error: Could not find the BAR file: %workingdir%%package%.bar
)
) ELSE (
ECHO Error: Could not find the package file: %~dp0%package%.zip
)
PAUSE
EXIT

 

Hope that helps if anyone is having issues.

Just copy the code into a new CMD file, in the same directory as your webworks.zip file and run it.