Skip to content

Commit

Permalink
1.0.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
NatWeiss committed Nov 4, 2016
1 parent ec0bae9 commit 6e5504b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 26 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Version 1.0.6 - Nov 4, 2016

Fixed the automatic creation of the ~/.rapidgame folder.
The --dest option is a path (not a name) so it can be moved.
Updated readme.

Version 1.0.5 - Nov 3, 2016

Removed the feature to automatically download cocos2d-x source in favor of using the source folder specified by the user.
Expand Down
39 changes: 20 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Prefer somebody explaining and showing it? Check out the [overview video](http:/
Create a Game in Under 30 Seconds
---------------------------------

You'll first need [Node.js](https://nodejs.org/en/download/).
You'll first need to install [Node.js](https://nodejs.org/en/download/).

There's no need to clone this repo, just install RapidGame:
Then, install RapidGame:

sudo npm install rapidgame -g

Expand All @@ -47,29 +47,29 @@ About Prebuilding

The command to prebuild cocos2d-x static libraries is:

rapidgame prebuild -s path/to/cocos2d-x/source/
rapidgame prebuild -s path/to/cocos2d-x/

When the command is finished, you'll have a directory (`~/.rapidgame` on Mac or Linux, and `C:\Users\[USERNAME]\.rapidgame` on Windows) with headers, java files, make files and prebuilt library files for all buildable architectures and configurations available on the current development platform.

You can specify which platform you want to prebuild:

rapidgame prebuild mac -s ...
rapidgame prebuild ios -s ...
rapidgame prebuild windows -s ...
rapidgame prebuild linux -s ...
rapidgame prebuild android -s ...
rapidgame prebuild mac -s path/to/cocos2d-x/
rapidgame prebuild ios -s path/to/cocos2d-x/
rapidgame prebuild windows -s path/to/cocos2d-x/
rapidgame prebuild linux -s path/to/cocos2d-x/
rapidgame prebuild android -s path/to/cocos2d-x/

Or refresh the headers:

rapidgame prebuild headers -s ...
rapidgame prebuild headers -s path/to/cocos2d-x/

Use a different name for the destination folder:
Use a different path for the destination libraries folder:

rapidgame prebuild -d 3.9-custom
rapidgame prebuild -d custom/destination/path/

The following command uses a custom cocos2d-x source root and places the resultant libraries in `~/.rapidgame/3.9-custom`:
The following command uses a custom cocos2d-x source root and places the resultant libraries in `~/my-cc-libs`:

rapidgame prebuild -s path/to/custom/cocos2d-x -d 3.9-custom
rapidgame prebuild -s path/to/custom/cocos2d-x -d ~/my-cc-libs

You can also specify a custom directory prefix where RapidGame stores it's files:

Expand All @@ -81,15 +81,16 @@ Create a symlink in the current directory to the current static libraries:

Or specify which prebuilt files to use:

rapidgame init . -d 3.9-custom
rapidgame init . -d ~/my-cc-libs

Or show all the directories RapidGame might use:

rapidgame show

Rapidgame lives here: /Users/nat/.rapidgame
Latest static libs and headers: /Users/nat/.rapidgame/3.9
Static libs and headers have been built: YES
Prebuilt headers and libs path: /Users/nat/.rapidgame/lib
Headers have been copied: YES
Libraries have been built: YES


Development Platforms
Expand All @@ -107,9 +108,9 @@ The cocos2d-x library prebuilder currently works on the following development pl
Requirements
------------

Mac: Xcode 5 or newer, and [Node.js](https://nodejs.org/en/download/).
Mac: Xcode 5+ and [Node.js](https://nodejs.org/en/download/).

Windows: [Visual Studio](https://www.visualstudio.com/en-us/products/free-developer-offers-vs.aspx) 2012 or newer, and [Node.js](https://nodejs.org/en/download/). Read the [Windows Notes](#windows-notes) for additional notes you should be aware of.
Windows: [Visual Studio](https://www.visualstudio.com/en-us/products/free-developer-offers-vs.aspx) 2012 or newer and [Node.js](https://nodejs.org/en/download/). Read the [Windows Notes](#windows-notes) for additional notes you should be aware of.

Linux: run `cocos2d-x/build/install-deps-linux.sh` and ensure that [Node.js](https://nodejs.org/en/download/) is installed.

Expand All @@ -127,7 +128,7 @@ Windows Notes
Updates
-------

* Nov 3, 2016: Removed the feature of automatically downloading cocos2d-x source in favor of using the source folder specified by the user.
* Nov 3, 2016: Rapidgame node modules are lighter weight and no longer requires installing git. (Removed the feature of automatically downloading cocos2d-x source in favor of using the source folder specified by the user.)
* Jan 27, 2016: Linux support. Can specify cocos2d-x source folder. Simplified Android prebuild so it doesn't require cygwin on Windows.
* Aug 17, 2015: Fixes for Visual Studio 2015.
* Aug 11, 2015: On Windows, the path to MSBuild.exe, Lib.exe and VCTargetsPath can be set manually in case they cannot be automatically located.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rapidgame",
"version": "1.0.5",
"version": "1.0.6",
"description": "A cross-platform commandline tool that prebuilds cocos2d-x libraries for Windows, Mac, Linux, Android and iOS. Also a game templating system.",
"author": {
"name": "Nathanael Weiss",
Expand Down
12 changes: 6 additions & 6 deletions rapidgame.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@ var http = require("http"),
doPhysics = false,
doNavmesh = false,
doWebp = false,
defaultDest = "lib",
defaults = {
engine: "cocos2dx",
template: "TwoScene",
package: "org.mycompany.mygame",
dest: process.cwd(),
prefix: path.join(path.homedir(), ".rapidgame"),
src: path.join(path.homedir(), ".rapidgame", "src", "cocos2d-x"),
dest: path.join(path.homedir(), ".rapidgame", defaultDest),
dest: path.join(path.homedir(), ".rapidgame", "lib"),
orientation: orientations[0]
};

Expand Down Expand Up @@ -72,7 +71,7 @@ var run = function(args) {
cmd
.version(version)
.option("-s, --src <path>", "cocos2d-x source path [" + defaults.src + "]", defaults.src)
.option("-d, --dest <name>", "destination folder name [" + defaultDest + "]", defaults.dest)
.option("-d, --dest <name>", "destination libraries path [" + defaults.dest + "]", defaults.dest)
.option("-p, --prefix <path>", "rapidgame home [" + defaults.prefix + "]", defaults.prefix)
.option("-t, --template <name>", "template [" + defaults.template + "]", defaults.template)
.option("-f, --folder <path>", "output folder of created project [" + defaults.dest + "]", defaults.dest)
Expand Down Expand Up @@ -190,7 +189,7 @@ var resolveDirs = function() {

// Resolve dest.
if (cmd.dest !== defaults.dest) {
cmd.dest = path.resolve(path.join(cmd.prefix, cmd.dest));
cmd.dest = path.resolve(cmd.dest);
}

return true;
Expand Down Expand Up @@ -271,8 +270,9 @@ var showPrefix = function(directory) {
if (!resolveDirs()) {return 1;}

console.log("Rapidgame lives here: " + cmd.prefix);
console.log("Latest static libs and headers: " + cmd.dest);
console.log("Static libs and headers have been built: " + (dirExists(cmd.dest) ? "YES" : "NO"));
console.log("Prebuilt headers and libs path: " + cmd.dest);
console.log("Headers have been copied: " + (dirExists(path.join(cmd.dest, "cocos2d", "x", "include")) ? "YES" : "NO"));
console.log("Libraries have been built: " + (dirExists(path.join(cmd.dest, "cocos2d", "x", "lib")) ? "YES" : "NO"));
if (cmd.src != defaults.src) {
console.log("src: " + cmd.src);
}
Expand Down

0 comments on commit 6e5504b

Please sign in to comment.