$ 0 0 Do your stuff, then execute the build using: http://docs.unity3d.com/Documentation/ScriptReference/BuildPipeline.BuildPlayer.html