Skip to content

Instantly share code, notes, and snippets.

@depau
Last active August 29, 2015 14:11
Show Gist options
  • Save depau/e3e60c279b45db8c5efb to your computer and use it in GitHub Desktop.
Save depau/e3e60c279b45db8c5efb to your computer and use it in GitHub Desktop.
Sublime Text 3 Buildozer Build System
{
"shell_cmd": "cd \"${file_path}\"; buildozer android debug 2>&1 | sed -u 's/\\x1B\\[[0-9;]*[JKmsu]//g'",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"variants":
[
{
"name": "Run",
"shell_cmd": "python \"${file_path}/main.py\" |& sed -u 's/\\x1B\\[[0-9;]*[jkmsu]//g'"
},
{
"name": "Build debug, deploy and run (remote)",
"shell_cmd": "cd \"${file_path}\"; buildozer android debug deploy run |& sed -u 's/\\x1B\\[[0-9;]*[JKmsu]//g'"
},
{
"name": "Build release",
"shell_cmd": "cd \"${file_path}\"; buildozer android release |& sed -u 's/\\x1B\\[[0-9;]*[JKmsu]//g'"
},
{
"name": "Deploy and run (remote)",
"shell_cmd": "cd \"${file_path}\"; buildozer android deploy run |& sed -u 's/\\x1B\\[[0-9;]*[JKmsu]//g'"
},
{
"name": "Deploy",
"shell_cmd": "cd \"${file_path}\"; buildozer android deploy |& sed -u 's/\\x1B\\[[0-9;]*[jkmsu]//g'"
},
{
"name": "Run (remote)",
"shell_cmd": "cd \"${file_path}\"; buildozer android run |& sed -u 's/\\x1B\\[[0-9;]*[jkmsu]//g'"
},
{
"name": "Serve",
"shell_cmd": "cd \"${file_path}\"; buildozer serve |& sed -u 's/\\x1B\\[[0-9;]*[jkmsu]//g'"
}
]
}
[
{ "keys": ["super+r"], "command": "build", "args": {"variant": "Build release"} },
{ "keys": ["super+b"], "command": "build", "args": {"variant": "Build debug, deploy and run (remote)"} },
{ "keys": ["super+shift+b"], "command": "build", "args": {"variant": "Deploy and run (remote)"} },
{ "keys": ["super+e"], "command": "build", "args": {"variant": "Serve"} },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment