About
This is a tool to allow you to work with and compile projects using the Moai SDK.
c:\dev> moaicli new testproject
c:\dev\testproject> moaicli build android
---(downloads the ndk, sdk, jdk, cmake etc, checks out moai from github)---
c:\dev\testproject> moaicli start android
---(runs compiled hello world app on attached android device)---
This tool aims to save you from having to install your own c++ compiler, cmake, or even the android sdk. It will install and run all of these for you, leaving you to focus on your game not your tools.
Requirements
- Windows, OSX, Linux
- Ability to execute java code
- Network connection with plenty of quota (android sdk+ndk is very large)
Install
Unzip the package to a location and add the folder containing the moaicli script to your path.
Basic usage
c:\dev> moaicli new testproject
c:\dev\testproject> moaicli build android
c:\dev\testproject> moaicli start android
for help run moaicli --help
COMMANDS:
build Builds the project for a platform and host
help Display global or [command] help documentation.
new Creates a new moai project in the folder named NAME
sdk update updates the configured sdk for HOST from its origin (git pull)
start Runs the specified host
Currently Supported Target Platforms
Windows
- Windows (MinGW)
- Android
- Html/Js (Emscripten)
OSX
- OSX
- IOS
- IOS-Simulator
- Html/Js Coming soon
Linux
- Linux
- Android
- Html/Js Coming soon
Building a project
MoaiCLI build <host>
Description
Builds the project for a host and places it in the distribute folder
Options
--platform <platform>
Build the host for the specified supported platform
--force
Force rebuild
--clean
Remove all generated build files before building
--release
Make a release build (default is debug)
Support or Contact
Still early days so feel free to leave a ticket in issues for any bugs or suggestions.