Skip to content

Instantly share code, notes, and snippets.

@wolf81
Last active June 16, 2024 13:40
Show Gist options
  • Save wolf81/f0d84790b31e003440da1bec64e60ad8 to your computer and use it in GitHub Desktop.
Save wolf81/f0d84790b31e003440da1bec64e60ad8 to your computer and use it in GitHub Desktop.
Sublime Text build systems for LÖVE & LÖVR
# would be better to /only/ add the binaries somehow, not all directory contents?
export PATH="/Applications/love.app/Contents/MacOS:$PATH"
export PATH="/Applications/lovr.app/Contents/MacOS:$PATH"
{
"selector": "source.lua",
"file_regex": "^Error: (?:[^:]+: )?([^: ]+?):(\\d+):() ([^:]*)$",
"windows": {
"cmd": ["C:/Program Files/LOVE/love.exe", "${folder:${file_path}}"],
"shell": true
},
"osx": {
"cmd": ["/Applications/love.app/Contents/MacOS/love", "${folder:${file_path}}"]
},
"linux": {
"cmd": ["love", "${folder:${file_path}}"]
}
}
{
"selector": "source.lua",
"file_regex": "^Error: (?:[^:]+: )?([^: ]+?):(\\d+):() ([^:]*)$",
"windows": {
"cmd": ["C:/Program Files/LOVR/lovr.exe", "${folder:${file_path}}"],
"shell": true
},
"osx": {
"cmd": ["/Applications/lovr.app/Contents/MacOS/lovr", "${folder:${file_path}}"]
},
"linux": {
"cmd": ["lovr", "${folder:${file_path}}"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment