Blog Archives

Python script to modify Marmalade for TestFlight

Here is python script that adds profile to IPA to make ready for upload

import zipfile
z1 = zipfile.ZipFile("c:/soft/Marmalade/6.0.6/examples/s3eMyApp/build_tapitexample_vc10/deployments/default/iphone/release/MyApp.ipa", "a")
z1.write("c:/Users/user/Dropbox/sign/embedded.mobileprovision", "Payload/MyApp.app/embedded.mobileprovision")
z1.close()

and for upload I use bat file that uses windows curl. no easy way to do it in python without installing some libs