Skip to content
Browse files

added build script to create ipa file

  • Loading branch information...
1 parent 656e2e1 commit 83e00d478baa2e9f47373c63d69e3b5f06a04067 @srohde committed
Showing with 40 additions and 1 deletion.
  1. +1 −1 .gitignore
  2. +10 −0 README.md
  3. +2 −0 build.properties
  4. +27 −0 build.xml
View
2 .gitignore
@@ -1,6 +1,6 @@
.DS_Store
node_modules
-artifacts
+build
www
docs
temp
View
10 README.md
@@ -155,6 +155,16 @@ Run it with:
Check out the screenshot in the temp directory.
+### IPA File
+
+Edit the `build.properties` and add the name of your XCode project and scheme name.
+
+Create the IPA file using:
+
+ $ ant
+
+You can use the IPA file to distribute your app to test users using [Testflight](http://testflightapp.com).
+
### Docs
Docs are generated using [docco](http://jashkenas.github.com/docco/) and [Pygments](http://pygments.org).
View
2 build.properties
@@ -0,0 +1,2 @@
+app.name=<app_name>
+scheme.name=<scheme_name>
View
27 build.xml
@@ -0,0 +1,27 @@
+<project name="Verve" default="ipa">
+
+ <property file="build.properties" />
+ <property name="build.dir" value="${basedir}/build" />
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ </target>
+
+ <target name="xcodebuild" depends="clean" description="Creates app in Applications dir.">
+ <exec executable="xcodebuild" failonerror="true" logError="true">
+ <arg line="-scheme ${scheme.name} -configuration Release INSTALL_ROOT=${build.dir} install"/>
+ </exec>
+ </target>
+
+ <target name="ipa" depends="xcodebuild" description="Zip Applications into ipa file.">
+ <move file="${build.dir}/Applications" tofile="${build.dir}/Payload"/>
+ <copy file="${basedir}/${app.name}/Resources/icons/icon-72.png" todir="${build.dir}/Payload"/>
+ <copy file="${basedir}/${app.name}/Resources/icons//icon-72@2x.png" todir="${build.dir}/Payload"/>
+
+ <zip destfile="${build.dir}/${app.name}.ipa">
+ <zipfileset dir="${build.dir}"/>
+ </zip>
+ <delete dir="${build.dir}/Payload"/>
+ </target>
+
+</project>

0 comments on commit 83e00d4

Please sign in to comment.
Something went wrong with that request. Please try again.