-
Sonar Systems adminLikes 1Problem Description
With the newer versions of Cocos2d-x and Cocos2d-JS the Cocos Console will be more mandatory than ever.
Let’s learn how to compile using the Cocos Console.
Solution Description-p is the platform [mac, ios, web, android, win32]
-m is the mode [debug, release] (this is optional and if ommitted the mode is set to debug)
-s is the project directory (can be ommitted if you cd to the project directory first)
-o is the output directory (can be ommitted if you cd to the project directory first)cocos compile -s /Users/sonarsystems/Desktop/Game1 -p mac -m release -o /Users/sonarsystems/Desktop/Output
cocos compile -p mac -m release
Quiet - reduces output to the console
---------------------------------------------------
cocos compile -q -s /Users/sonarsystems/Desktop/Game1 -p mac -m release -o /Users/sonarsystems/Desktop/Outputcocos compile -q -p mac -m release
-
fechoxLikes 2
Thanks for this, I’m moving away from the Cocos IDEs as it seems that they wiill not be developed any further.
Sorry for my ignorance, but what would be the command for generating a signed apk for a game written in JS?
This reply has been verified.
-
Sonar Systems adminLikes 1
It’s the same :D
-
fechoxLikes 0
Ok, thanks!
This reply has been verified.
Login to reply