A command line application (CLI) for creating and managing Rune (rune-sdk) based projects.
rune-tools can be executed with two possible flags:
rune-tools --help: To print the man page.rune-tools --version: To print current version of rune-tools.
Rune-tools contains four subcommands:
add <sprite|scene> APPLICATION.PACKAGE.CLASS: Creates a Sprite or Scene class from a template in the current directory. For example,rune-tools add sprite mygame.mypackage.PlayercreatesPlayer.js. Userune-tools add scene mygame.mypackage.Sceneto createScene.js. Nested packages are supported, and existing files are never overwritten. Define the namespace and add the file to your project's loading and build lists before using the class.create [-a=APP] [-d=DEV] [-b=BUILD]: Create new projects. This includes tedious tasks such as creating folders and file structures.-a, --application: App-ID, example:myApp.-d, --developer: Developer-ID, example:vectorpanic.-b, --build: Build version, example:1.0.0.
update: Updates the project's Rune version to the latest build.compile [-r]: Compiles data files (images, audio files, XML/JSON files, etc..) into a bundle.-r, --resource: Include URI, not Base64.
Install with npm:
npm install -g rune-toolsOr download the source code and use npm link to create a symlink from rune-tools to npm's global folder. Example:
npm link ./rune-toolsThe following command creates a new project folder named MyApp, by developer com.example of version 1.0.0.
rune-tools create -a MyApp -d com.example -b 1.0.0Then navigate into the MyApp directory and run npm update to download the Electron dependency. Use npm test to run the MyApp project:
cd ./MyApp
npm update
npm testTo update to the latest build of Rune (SDK), run the following command:
rune-tools update