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

Adobe AIR Development

Reply
Developer
gpatton
Posts: 193
Registered: ‎12-29-2010
My Device: Bold 9900

Command Line packaging vs. FlashBuilder packaging

Hello all,

 

I'm starting to get really confused by the lack of streamlining this entire signing process. Maybe it's just my cranky midnight time right now...who knows? :smileytongue:

 

Anyways, so I'm still waiting for my keys (CSJ files? correct me if I'm wrong) to arrive. And in the meantime, I'm also trying to learn this whole process. 

 

So in Flash Builder 4.0, I have my "Run" preferences set to "Development" mode rather than "Production" deployment mode. Under "Packaging", I have the checkmark next to "Package (generate bar file). This creates a bar file in my folder where all the images/source code is. 

 

Question: IS THIS bar file enough to continue on with the rest of the signing process? OR do I have to do anything else? OR should I follow the command line way? My app has a lot of images, so I was trying to avoid that process a bit.

 

After I get this bar file...I then:

 

1. Create a password with the RIM Signing Authority.

2. Register with the RIM Signing Authority using your CSJ registration file.

3. Create a Developer Certificate by using the blackberry-keytool

 tool. AND MAKE SURE that the "Developer" names match..

 

4. Sign the application from command line using blackberr- signer

 

Bingo Bango? Is that it?

 

 

As an EXTRA question....IS THERE ANYWAY to do this from within Flash Builder?

 

Thanks :smileyhappy:

 

G

Please use plain text.
Developer
tensioncore
Posts: 323
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition

Re: Command Line packaging vs. FlashBuilder packaging

When you are ready to package and sign you will want to be in Production mode, and set the actionscript compiling to -debug=false

 

Your Process is pretty close....Look into my Thread on signing your app from the CMD here:

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/HOWTO-Sign-your-Applications-from...

 

And you CANNOT sign via the flash GUI at the time being, it is a known bug.

CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Please use plain text.
Developer
gpatton
Posts: 193
Registered: ‎12-29-2010
My Device: Bold 9900

Re: Command Line packaging vs. FlashBuilder packaging

[ Edited ]

Hey tensioncore,

 

Thanks for your reply.

I'm looking under the "Run Configurations" in Flash Builder 4, and notice that when I set it to "Production Mode", and error appears on the top saying: " Your BAR must be signed with a RIM key in order to run on a secured device.".

 

I can't click "Apply" but I can click "Close"...should I continue as normal? i.e. hit "Close" and package it from command line etc.?

 

Also where is the "debug=false" setting?

 

Sorry for being such a n00b here!

Thanks

 

G

Please use plain text.
Developer
jffurlan
Posts: 1,003
Registered: ‎01-16-2011
My Device: PlayBook (sim)

Re: Command Line packaging vs. FlashBuilder packaging

gpatton,

 

I'm using burrito but there should be a place to uncheck "enable digital signing".

I believe hitting close and packaging from command line should cause any problems.

 

As for -debug=false:

right click your project,

hit properties

hit actionscript compiler

and under "Additional Compiler Arguments" add "-debug=false"

hit apply, then ok.

Then at the top hit project, clean and it should clean out all you debug info.

 

Goog luck with submission!

- If you like my response/post, or it helped you find an answer you were looking for, please provide a Kudo - white star to the bottom right of this post. -
- Please use the search bar at the top, or check out the PlayBook FAQ's for help getting started -
- Hockey DrillBook -
Please use plain text.
Developer
gpatton
Posts: 193
Registered: ‎12-29-2010
My Device: Bold 9900

Re: Command Line packaging vs. FlashBuilder packaging

Hey jfurrian,

 

You wrote:

I believe hitting close and packaging from command line should cause any problems.

 

Was that a typo sorry? Should or shouldn't? :smileytongue:

 

Also, there is a checkbox called "Sign" and I have that unchecked.

So this is what I have in order from top to botton on the "Run Configurations" setting.

 

Application Deployment Mod -: Production Mode

Package (generate bar file) - Checked

Sign - Unchecked

Deployment method - Install and Launch

Target IP - whatever mine is

Device Password - whatever mine is

 

If I check the "Sign" box, then the error message changes to: "No Developer Messages Exists for Signing"....rather than the one before which was - Your BAR must be signed with a RIM key in order to run on a secured device.

 

Thanks

 

G

 

 

Please use plain text.
Developer
tensioncore
Posts: 323
Registered: ‎12-13-2010
My Device: Bold 9900/Z10 Special Edition

Re: Command Line packaging vs. FlashBuilder packaging

Keep the deployment-to-simulator in development mode...that I guess refers to being deployed to a physical device; that would require signing! - my mistake
CEO/Lead Developer - Tensioncore™ Design Studios
http://tncr.ws/ - ShortenThis!™ for Blackberry Playbook | ShortenThis!™ for BlackBerry® 10
The Periodical Toe A highly informative Table of Elements
DrawThis! A fun drawing app for the BlackBerry® PlayBook™!
http://www.tensioncore.com/ - Tensioncore™ Web Hosting
Please use plain text.