Adobe AIR - Publish Tools to BlackBerry Playbook & BB10
*For advanced user Adobe Flash Pro
**Beware all text red mark is base on your install application path, IP_ADDR is your blackberry ip v4
1. pre-require
download here: http://developer.blackberry.com/air/
2. all bat files as command line to package, install & uninstall
File name : BlackBerryPlayBook-Packager.bat
::----------------------- Start Code -------------------------
@echo off
:: Created Date : May 29, 2011
:: Author : Mr.Porawee Raksasin
:: BlackBerry Tablet OS - Packager
:: PlayBook : Bar generator
:: Path to BlackBerry Tablet OS SDK binaries
set PATH=%PATH%;C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\blackberry-tablet-sdk-1.0.1\bin
:: Package information
set BAR_NAME="yourGame.bar"
set ICON="blackberry-tablet.xml"
set SWF="yourGame.swf"
set SWF_XML="yourGame-app.xml"
set OPT1="Folder1"
set OPT2="Folder2"
set OPT3="Folder3"
set OPT4="Folder_anyName"
echo.
echo Hint: wait a few minutes before this package to build your BAR application setup.
echo.
call blackberry-airpackager -package %BAR_NAME% %SWF_XML% %SWF% %ICON% %OPT1% %OPT2% %OPT3% %OPT4%
if errorlevel 1 goto failed
echo.
echo Packager created: %BAR_NAME% success
echo.
goto end
:failed
echo.
echo Packager creation FAILED.
echo.
echo Delete Error Temp file
echo.
del *.tmp
echo Troubleshotting: did you configure BlackBerry Tablet OS SDK path in this Batch file?
echo.
:end
pause
::----------------------- End Code -------------------------
File name: blackberry-tablet.xml
<qnx>
<initialWindow>
<systemChrome>none</systemChrome>
<transparent>true</transparent>
</initialWindow>
<icon>
<image>yourIconFolder/your_icon_57x57.png</image>
</icon>
<author>Porawee Raksasin</author>
<authorId>gYAAgIqK0RLL5u4I9NanyxBUuCI</authorId>
<publisher>Your Company Name</publisher>
<category>core.games</category>
<!--<splashscreen>img/spalsh_landscape.jpg:img/splash_portrait.jpg</splashscreen>-->
<!--<action>use_camera</action>-->
<!--<action>read_geolocation</action>-->
<!--<action>play_audio</action>-->
<buildId>1</buildId>
<platformVersion>1.0.0.0</platformVersion>
</qnx>
File name : BlackBerryPlayBook-Installer.bat
::----------------------- Start Code -------------------------
@echo off
:: Created Date : May 29, 2011
:: Author : Mr.Porawee Raksasin
:: BlackBerry Tablet OS - Installer
:: PlayBook : Bar Installer
:: Path to BlackBerry Tablet OS SDK binaries
set PATH=%PATH%;C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\blackberry-tablet-sdk-1.0.1\bin
:: Package information
set BAR_NAME="yourGame.bar"
set IP_ADDR=192.168.141.128
set PASSWORD=playbook
echo.
echo Hint: wait a minutes before this package to install your BAR application setup.
echo.
call blackberry-deploy -package %BAR_NAME% -installApp -device %IP_ADDR% -password %PASSWORD%
if errorlevel 1 goto failed
echo.
echo Install : %BAR_NAME% success
echo.
goto end
:failed
echo.
echo Installer FAILED.
echo.
echo Delete Error Temp file
echo.
del *.tmp
echo Troubleshotting: did you configure BlackBerry Tablet OS SDK path in this Batch file?
echo.
:end
pause
::----------------------- End Code -------------------------
File name : BlackBerryPlayBook-Uninstaller.bat
::----------------------- Start Code -------------------------
@echo off
:: Created Date : May 29, 2011
:: Author : Mr.Porawee Raksasin
:: BlackBerry Tablet OS - Uninstaller
:: PlayBook : Bar Uninstaller
:: Path to BlackBerry Tablet OS SDK binaries
set PATH=%PATH%;C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\blackberry-tablet-sdk-1.0.1\bin
:: Package information
set BAR_NAME="yourGame.bar"
set IP_ADDR=192.168.141.128
set PASSWORD=playbook
echo.
echo Hint: wait a minutes before this package to uninstall your BAR application.
echo.
call blackberry-deploy -package %BAR_NAME% -uninstallApp -device %IP_ADDR% -password %PASSWORD%
if errorlevel 1 goto failed
echo.
echo Uninstall file: %BAR_NAME% success
echo.
goto end
:failed
echo.
echo Uninstaller FAILED.
echo.
echo Delete Error Temp file
echo.
del *.tmp
echo Troubleshotting: did you configure BlackBerry Tablet OS SDK path in this Batch file?
echo.
:end
pause
::----------------------- End Code -------------------------
Thanks for read, have fun :)
*For advanced user Adobe Flash Pro
**Beware all text red mark is base on your install application path, IP_ADDR is your blackberry ip v4
1. pre-require
download here: http://developer.blackberry.com/air/
2. all bat files as command line to package, install & uninstall
File name : BlackBerryPlayBook-Packager.bat
::----------------------- Start Code -------------------------
@echo off
:: Created Date : May 29, 2011
:: Author : Mr.Porawee Raksasin
:: BlackBerry Tablet OS - Packager
:: PlayBook : Bar generator
:: Path to BlackBerry Tablet OS SDK binaries
set PATH=%PATH%;C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\blackberry-tablet-sdk-1.0.1\bin
:: Package information
set BAR_NAME="yourGame.bar"
set ICON="blackberry-tablet.xml"
set SWF="yourGame.swf"
set SWF_XML="yourGame-app.xml"
set OPT1="Folder1"
set OPT2="Folder2"
set OPT3="Folder3"
set OPT4="Folder_anyName"
echo.
echo Hint: wait a few minutes before this package to build your BAR application setup.
echo.
call blackberry-airpackager -package %BAR_NAME% %SWF_XML% %SWF% %ICON% %OPT1% %OPT2% %OPT3% %OPT4%
if errorlevel 1 goto failed
echo.
echo Packager created: %BAR_NAME% success
echo.
goto end
:failed
echo.
echo Packager creation FAILED.
echo.
echo Delete Error Temp file
echo.
del *.tmp
echo Troubleshotting: did you configure BlackBerry Tablet OS SDK path in this Batch file?
echo.
:end
pause
::----------------------- End Code -------------------------
File name: blackberry-tablet.xml
<qnx>
<initialWindow>
<systemChrome>none</systemChrome>
<transparent>true</transparent>
</initialWindow>
<icon>
<image>yourIconFolder/your_icon_57x57.png</image>
</icon>
<author>Porawee Raksasin</author>
<authorId>gYAAgIqK0RLL5u4I9NanyxBUuCI</authorId>
<publisher>Your Company Name</publisher>
<category>core.games</category>
<!--<splashscreen>img/spalsh_landscape.jpg:img/splash_portrait.jpg</splashscreen>-->
<!--<action>use_camera</action>-->
<!--<action>read_geolocation</action>-->
<!--<action>play_audio</action>-->
<buildId>1</buildId>
<platformVersion>1.0.0.0</platformVersion>
</qnx>
File name : BlackBerryPlayBook-Installer.bat
::----------------------- Start Code -------------------------
@echo off
:: Created Date : May 29, 2011
:: Author : Mr.Porawee Raksasin
:: BlackBerry Tablet OS - Installer
:: PlayBook : Bar Installer
:: Path to BlackBerry Tablet OS SDK binaries
set PATH=%PATH%;C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\blackberry-tablet-sdk-1.0.1\bin
:: Package information
set BAR_NAME="yourGame.bar"
set IP_ADDR=192.168.141.128
set PASSWORD=playbook
echo.
echo Hint: wait a minutes before this package to install your BAR application setup.
echo.
call blackberry-deploy -package %BAR_NAME% -installApp -device %IP_ADDR% -password %PASSWORD%
if errorlevel 1 goto failed
echo.
echo Install : %BAR_NAME% success
echo.
goto end
:failed
echo.
echo Installer FAILED.
echo.
echo Delete Error Temp file
echo.
del *.tmp
echo Troubleshotting: did you configure BlackBerry Tablet OS SDK path in this Batch file?
echo.
:end
pause
::----------------------- End Code -------------------------
File name : BlackBerryPlayBook-Uninstaller.bat
::----------------------- Start Code -------------------------
@echo off
:: Created Date : May 29, 2011
:: Author : Mr.Porawee Raksasin
:: BlackBerry Tablet OS - Uninstaller
:: PlayBook : Bar Uninstaller
:: Path to BlackBerry Tablet OS SDK binaries
set PATH=%PATH%;C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\blackberry-tablet-sdk-1.0.1\bin
:: Package information
set BAR_NAME="yourGame.bar"
set IP_ADDR=192.168.141.128
set PASSWORD=playbook
echo.
echo Hint: wait a minutes before this package to uninstall your BAR application.
echo.
call blackberry-deploy -package %BAR_NAME% -uninstallApp -device %IP_ADDR% -password %PASSWORD%
if errorlevel 1 goto failed
echo.
echo Uninstall file: %BAR_NAME% success
echo.
goto end
:failed
echo.
echo Uninstaller FAILED.
echo.
echo Delete Error Temp file
echo.
del *.tmp
echo Troubleshotting: did you configure BlackBerry Tablet OS SDK path in this Batch file?
echo.
:end
pause
::----------------------- End Code -------------------------
Thanks for read, have fun :)
Comments
Post a Comment