An old request for the Corona SDK TextMate bundle was the ability to run the Corona Simulator if it was installed to a custom location - if you’ve used the bundle before, you probably know that it assumes that the Corona SDK is installed to
/Applications/CoronaSDK. With the recent release of a new version of the SDK, I’ve added the ability to specify which SDK to run when launching the Simulator from within TextMate.
To employ this method, here are the steps to follow:
You must have your Corona app set up in TextMate as a project.
When you have the project drawer open, make sure that no files in the drawer are selected (just click on some white space within the drawer).
Click the ‘info’ button at the bottom of the project drawer. You should see this window pop up:
Click the ‘+’ button to add a new environment variable. Name the variable
SDK_PATHand set the value to the location of the SDK version you want to use for this project. Make sure to leave off the trailing slash! Like this:
Close the window and when you hit Cmd-R from within TextMate, it should launch your project in the SDK version you’ve specified. If nothing happens, then you probably have a typo somewhere. Right now the script isn’t doing much in the way of sanity or other checking, so it’s up to you to make sure things are set up properly.