 |
| Author |
Message |
|
unabogie
Member
Joined: Sat Aug 21, 2010 7:34 pm Posts: 26
|
 Packager for Iphone
Hi everyone,
Since the PFI (packager for iPhone) uses a free command line tool, have any of you who have experience creating plugins attempted to do this using FD? You basically need a .p12 file, a provisioning file from Apple, and a swf.
I'd be happy to help with the parts I have experience with if anyone wants to partner on it. I just don't know how to make plugins or what the limitations are there, but I understand the PFI process pretty well.
|
| Tue Nov 30, 2010 5:22 pm |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 10746 Location: Paris, France
|
 Re: Packager for Iphone
You don't need a plugin for that, "just" improving the batch files in FD's AIR template.
All these tools are command line applications that need to be carefully studied to understand what parameters to provide. Adobe labs should provide most of the required documentation with the tool.
|
| Tue Nov 30, 2010 10:17 pm |
|
 |
|
unabogie
Member
Joined: Sat Aug 21, 2010 7:34 pm Posts: 26
|
 Re: Packager for Iphone
Thanks, Philippe, can you point me in the right direction with that? I'm not familiar with this part of FD, but I can figure out the batch file stuff. I'd be happy to post my results here if it would make it easier for others.
|
| Tue Nov 30, 2010 11:16 pm |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 10746 Location: Paris, France
|
 Re: Packager for Iphone
The right direction is to read all the docs which come with the iPhone package provided by Adobe.
|
| Wed Dec 01, 2010 9:31 am |
|
 |
|
unabogie
Member
Joined: Sat Aug 21, 2010 7:34 pm Posts: 26
|
 Re: Packager for Iphone
Ok, maybe there's some confusion here. Right now, when you run the PFI from inside CS5, it publishes the swf, then runs the PFI process. That process requires a path to the cerificate, the provisioning file, the app xml, the swf to be converted, and the name of the output file, among other items.
I'm not asking how to do that part. First of all, not everyone here has CS5, but second of all, that process could be made easier with FD. What I'm asking about is whether anyone wants to attempt to make a one step solution wherein we can convert the file from within FD by simply filling in those values. I was offering my help with how that process works (the PFI batch file and arguments, how to make a .p12 file, how to navigate Apple's tools, etc) to anyone who knew more about FD extensions. If it's not possible or I don't understand FD's architecture, that's fine. I'm attempting to learn more. But here's what I'd like to see, if I could build this.
1. FD runs the build command and publishes the swf. 2. FD runs the PFI from that swf,using the supplied values for .p12, provisioning file, output file, etc, possibly incrementing the version #. 3. FD executes the resultant IPA file which opens in iTunes.
Is that clearer?
|
| Wed Dec 01, 2010 3:58 pm |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 10746 Location: Paris, France
|
 Re: Packager for Iphone
Adobe is offering a command-line packager in their labs: http://labs.adobe.com/technologies/packagerforiphone/FlashDevelop is going to nicely support the mobile workflows with ready-to-use templates.
|
| Wed Dec 01, 2010 4:09 pm |
|
 |
|
unabogie
Member
Joined: Sat Aug 21, 2010 7:34 pm Posts: 26
|
 Re: Packager for Iphone
Yes, ok, so this is exactly what I was referring to, using the command line tool from within FD and bypassing the PFI in Flash. For one thing, while you're running the PFI from within Flash, it locks up Flash for sometimes several minutes. Using the command line version instead would be much better. Also, using the command line version would allow people with CS4 and Flex to use it. I've been setting up a batch file to run this, but of course that requires you to make a copy for each project and I'd love to simplify this process.
(I'm sure you know all this)
Another thing that CS5 does that is annoying is that it overwrites your app.xml file whenever you open the iOS dialog. Which complicates doing things like publishing to multiple iOS builds or adjusting Apple's params in that file, since both the path to the swf and that xml file are hard coded and can't be changed.
|
| Wed Dec 01, 2010 4:20 pm |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 10746 Location: Paris, France
|
 Re: Packager for Iphone
FlashDevelop AIR templates include a copy of the Batch used to package the AIR app. We are looking into removing this scripts in the future but in the meanwhile this is a relatively clean solution.
I suggest creating a regular AIR project from FD templates and modify this script to match the required additional steps for iPhone.
Of course we are talking of a CS5-free packaging solution, so you can use CS4 and/or Flex SDK.
|
| Wed Dec 01, 2010 7:04 pm |
|
 |
|
wanzai
Member
Joined: Fri Mar 27, 2009 10:02 am Posts: 7
|
 Re: Packager for Iphone
Here is a solution, not 1-click but close enough once set up. http://blubl.geoathome.at/2010/09/flash ... or-iphone/A batch file takes care of the conversion process. It's in German, and I'm short on time right now for a translation/summary, so try using the translation web service of your choice. One thing I'd like to add is that the required password (set up at certification creation) must not be empty. My first attempts didn't used a password (I didn't think it'd be necessary for development), and while the certificate creation didn't require it, the compiling process will fail without a proper password.
|
| Sun Dec 05, 2010 7:51 pm |
|
 |
|
Joe Dalton
Member
Joined: Fri Dec 10, 2010 10:05 am Posts: 5
|
 Re: Packager for Iphone
wanzai wrote: Here is a solution, not 1-click but close enough once set up. http://blubl.geoathome.at/2010/09/flash ... or-iphone/A batch file takes care of the conversion process. It's in German, and I'm short on time right now for a translation/summary, so try using the translation web service of your choice. One thing I'd like to add is that the required password (set up at certification creation) must not be empty. My first attempts didn't used a password (I didn't think it'd be necessary for development), and while the certificate creation didn't require it, the compiling process will fail without a proper password. hello wanzai, I was doing as written on the german page but still couldn't have the .ipa exported from the FD. the cmd keeps saying Quote: ERROR: IPA creation FAILED.
Troubleshotting: did you configure the Flex SDK path in this Batch file? I have certification with a rite password. My only solution now is to point the document Class in Flash IDE to Main.as & publish from the IDE. Can you help me to publish from the FD? thanks, J ps, the full compiling result here: Code: iPhone IPA generator
Thanks, password input done.
IPA creation may take up to 3 minutes, please be patient -------------------------------------------------------- 'pfi' is not recognized as an internal or external command, operable program or batch file. -------------------------------------------------------- ERROR: IPA creation FAILED.
Troubleshotting: did you configure the Flex SDK path in this Batch file?
Press any key to continue . . .
|
| Fri Dec 10, 2010 10:58 am |
|
 |
|
unabogie
Member
Joined: Sat Aug 21, 2010 7:34 pm Posts: 26
|
 Re: Packager for Iphone
Hi Joe,
I'm working (in my spare time) on a quick solution to this using AIR and a batch file. Since I mostly do web stuff, it's taking me a bit to get it all working but once I do I'll post a little app.
|
| Fri Dec 10, 2010 4:18 pm |
|
 |
|
Joe Dalton
Member
Joined: Fri Dec 10, 2010 10:05 am Posts: 5
|
 Re: Packager for Iphone
for those who got the similar problem above, i just solved by changing the pfi calling command to the full location, i.e: Code: call E:/work/_sdk/flex_SDK_IPHONE/bin/pfi -package %GPUDIAG%-target %IPATYPE% -provisioning-profile %PROVISIONIG_FILE% -storetype pkcs12 -keystore %CERTIFICATE_FILE% -storepass %PASSWORD% iphone/game2-%IPATYPE%.ipa application.xml bin/game2.swf Default.png bin/icons Joe Dalton wrote: wanzai wrote: Here is a solution, not 1-click but close enough once set up. http://blubl.geoathome.at/2010/09/flash ... or-iphone/A batch file takes care of the conversion process. It's in German, and I'm short on time right now for a translation/summary, so try using the translation web service of your choice. One thing I'd like to add is that the required password (set up at certification creation) must not be empty. My first attempts didn't used a password (I didn't think it'd be necessary for development), and while the certificate creation didn't require it, the compiling process will fail without a proper password. hello wanzai, I was doing as written on the german page but still couldn't have the .ipa exported from the FD. the cmd keeps saying Quote: ERROR: IPA creation FAILED.
Troubleshotting: did you configure the Flex SDK path in this Batch file? I have certification with a rite password. My only solution now is to point the document Class in Flash IDE to Main.as & publish from the IDE. Can you help me to publish from the FD? thanks, J ps, the full compiling result here: Code: iPhone IPA generator
Thanks, password input done.
IPA creation may take up to 3 minutes, please be patient -------------------------------------------------------- 'pfi' is not recognized as an internal or external command, operable program or batch file. -------------------------------------------------------- ERROR: IPA creation FAILED.
Troubleshotting: did you configure the Flex SDK path in this Batch file?
Press any key to continue . . .
|
| Fri Dec 10, 2010 4:31 pm |
|
 |
|
Joe Dalton
Member
Joined: Fri Dec 10, 2010 10:05 am Posts: 5
|
 Re: Packager for Iphone
unabogie wrote: Hi Joe,
I'm working (in my spare time) on a quick solution to this using AIR and a batch file. Since I mostly do web stuff, it's taking me a bit to get it all working but once I do I'll post a little app. dude you just need to read this [url="http://blubl.geoathome.at/tag/as3/"]link[/url] now we can compile to ipa file directly from FlashDevelop! if u get trouble in following the German link above, you may buzz me at skype:jazzjoe or YM:joelovesmilk Cheers, J
|
| Fri Dec 10, 2010 4:37 pm |
|
 |
|
unabogie
Member
Joined: Sat Aug 21, 2010 7:34 pm Posts: 26
|
 Re: Packager for Iphone
I couldn't seem to find some of their files, so I rolled my own... http://www.makaimedia.com/pfi/PFI_Runner.zipIt uses three files: PFI_Runner.exe ipa_config.xml Create_IPA.bat The batch file could be changed to use the pfi directly, but I have Windows 7 and it kept complaining about the wrong version of Java. So I installed a 32 bit version of Java ("C:\Program Files (x86)\Java\jre1.5.0_22\bin\java.exe") and run it from the jar ("C:\Program Files (x86)\Adobe\Adobe Flash CS5\PFI\lib\pfi.jar"). If you have Flash CS5, this will let you compile an ipa file without tying up Flash. If anyone wants to take this and make it ready for prime time, please have at it. 
|
| Fri Dec 10, 2010 10:07 pm |
|
 |
|
Joe Dalton
Member
Joined: Fri Dec 10, 2010 10:05 am Posts: 5
|
 Re: Packager for Iphone
hey unabogie, it cool but we don't just need to compile into ipa because flash IDE already could do that!
|
| Sat Dec 11, 2010 11:32 am |
|
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|
|
 |