I want to include my own javascript file into a sencha touch project (having some global constants etc.). To do so I just created the file in the app directory and used in the index.html a
<script type="text/javascript" src="app/filename.js"></script>
This works fine with localhost.

However, as soon as I build a production build and deploy it, I get the error
GET http:/..../myapp/app/filename.js 404 (not found)
--> the build does not get the file automatically

What is the right way of adding my own js-files, so that they automatically become part of the build and are cached on the mobile device?

Thanks, hebr3