PDA

View Full Version : How do I get images included in build?



worthlutz
6 Nov 2012, 9:47 AM
I have an Architect project where I have some images defined. Not in css.

With src='./assets/myImage.png'

How do I get these included when using

sencha app build


Thanks,

Worth

dongryphon
6 Nov 2012, 11:50 PM
You can copy extra resources to your build in the build.xml.



<target name="-post-build">
<mkdir dir="${build.dir}/assets" />
<copy todir="${build.dir}/assets">
<fileset dir="assets" includes="*"/>
</copy>
</target>


Or similar. Consult http://ant.apache.org/manual/ for Ant help on the specifics.

For using Cmd with Architect, check out this post:

http://www.sencha.com/forum/showthread.php?246508-Setting-up-your-Architect-Touch-projects-to-be-used-with-Sencha-Cmd-v3