1 decade ago by jessefreeman
Wanted to share an Ant build I wrote a few days ago to help speed up baking and creating a chrome market build of my game:
https://gist.github.com/1889757
This is still a work in progress but should give you a basic idea of how to help automate some of the more repdative pre-deploy tasks for your Impact game.
It's also important to note that you will need to wrap your game's impact.js & main.js code blocks in the following comments:
This just helps the ant build know which two js files to replace with the minified js file after it's generated.
Finally, this was only tested out on a Mac so you may have to make modifications to run on a PC. Most likely the issue would be with how I call the PHP bake script but Ant should work fine on both platforms. I'll get around to testing this out on a PC very soon and update it accordingly.
https://gist.github.com/1889757
This is still a work in progress but should give you a basic idea of how to help automate some of the more repdative pre-deploy tasks for your Impact game.
It's also important to note that you will need to wrap your game's impact.js & main.js code blocks in the following comments:
<!--source scripts--> <script type="text/javascript" src="lib/impact/impact.js"></script> <script type="text/javascript" src="lib/game/main.js"></script> <!--end source scripts-->
This just helps the ant build know which two js files to replace with the minified js file after it's generated.
Finally, this was only tested out on a Mac so you may have to make modifications to run on a PC. Most likely the issue would be with how I call the PHP bake script but Ant should work fine on both platforms. I'll get around to testing this out on a PC very soon and update it accordingly.