Skip to content

Instantly share code, notes, and snippets.

@jfcalvo
Created June 26, 2012 22:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfcalvo/2999799 to your computer and use it in GitHub Desktop.
Save jfcalvo/2999799 to your computer and use it in GitHub Desktop.
My Sublime Text 2 Build System to build MoaiSDK Projects with MacOS
/*
Change MOAI_BIN environment for the directory where your have MoaiSDK bin
*/
{
"cmd": ["./run.sh"],
"working_dir": "${project_path:${folder}}",
"env": {
"MOAI_BIN": "/Users/jfcalvo/Development/moai-sdk/bin/osx/moai"
},
"selector": "source.lua"
}
#!/bin/bash
$MOAI_BIN config.lua main.lua
@vrinek
Copy link

vrinek commented Mar 21, 2013

Did you find a way to not hardcode the home directory (/Users/jfcalvo)?

@ragunathjawahar
Copy link

Use ~/path/to/moai-sdk/bin/osx/moai

@reneolivo
Copy link

You may need to give run permission to your .sh file:

https://gist.github.com/typeoneerror/1596565

chmod +x run.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment