Sometimes the project team needs to publish the COCOS2D-JS project to the planning for debugging, but at this time do not want to publish the JS source code, at this time can use the following methods.
1. Build Win32 Runtime in Cocoside
2. Copy all files under the project directory \runtime\win32 to the custom publish directory (e.g. D:\publish)
3. Copy the Res folder, src folder, Config.json, Main.js, Project.json to the Publish directory under the project directory
4. Using the Cocos2d-console tool, compile the src folder of the publishing directory and all the JS files in the script folder into the JSC file, and save in the original directory, see the following address generation JSC bytecode this section
http://cn.cocos2d-x.org/tutorial/show?id=1324
5. Delete all JS files in the original SRC folder and the script folder
Cocos2d-js script compiled to bytecode, published on Windows