Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions Build Systems/Processing.sublime-build
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// If you chose to install processing-java in your home dir then change cmd to "~/processing-java" instead of "processing-java"
{
"selector": "source.pde",
"cmd": ["processing-java", "--force", "--sketch=$file_path", "--output=$file_path/build-tmp", "--run"],
"file_regex": "^(...*?):([0-9]*)",
"encoding": "ISO8859-1",
"osx": { "path": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" },

// if you choose to install processing-java just in your home dir then use for the cmd "~/processing-java" instead of "processing-java"
"variants": [
{
// Close old sketch on build.
{ // Close old sketch on build.
"name": "Re-run sketch" ,
"windows": {
"shell_cmd": "wmic process where \"Caption Like '%java.exe%' AND CommandLine Like '%$file_base_name%'\" call terminate 1>nul && processing-java --force --sketch=\"$file_path\" --output=\"$file_path/build-tmp\" --run"
Expand All @@ -22,15 +22,18 @@
}
},

{ "cmd": ["processing-java", "--force", "--sketch=$file_path", "--run"],
{
"cmd": ["processing-java", "--force", "--sketch=$file_path", "--run"],
"name": "Run sketch (Processing 3 only)"
},

{ "cmd": ["processing-java", "--force", "--sketch=$file_path", "--output=$file_path/build-tmp", "--present"],

{
"cmd": ["processing-java", "--force", "--sketch=$file_path", "--output=$file_path/build-tmp", "--present"],
"name": "Run sketch fullscreen"
},

{ "cmd": ["processing-java", "--force", "--sketch=$file_path", "--output=$file_path/application", "--export"],
{
"cmd": ["processing-java", "--force", "--sketch=$file_path", "--output=$file_path/application", "--export"],
"name": "Export sketch as application"
}
]
Expand Down