Last active
May 20, 2025 18:39
-
-
Save edmorais/2ccefa2df73e33c226e8b3878cd848c3 to your computer and use it in GitHub Desktop.
Sublime Text build system for Processing 4.4.3+ on Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| // Sublime Text build system for Processing 4.4.3+ on Windows | |
| // | |
| // Updates the build system included with the ST4 Processing package, which needs processing-java.exe. | |
| // Just add this file to your Packages/User folder, then choose this build system. | |
| // You need to add the Processing folder to the PATH environment variable. | |
| { | |
| "selector": "source.pde", | |
| "cmd": ["processing.exe", "cli", "--force", "--sketch=$file_path", "--run"], | |
| "file_regex": "^(...*?):([0-9]*)", | |
| "encoding": "ISO8859-1", | |
| "osx": { "path": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME" }, | |
| "variants": [ | |
| { // 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" | |
| }, | |
| "osx": { | |
| "shell_cmd": "pkill -f \\$(basename \"$file_path\"); processing-java --force --sketch=\"$file_path\" --output=\"$file_path/build-tmp\" --run" | |
| }, | |
| "linux": { | |
| "shell_cmd": "pkill -f \"java.*$file_path\\$\"; processing-java --force --sketch=\"$file_path\" --output=\"$file_path/build-tmp\" --run" | |
| } | |
| }, | |
| { | |
| "cmd": ["processing.exe", "cli", "--force", "--sketch=$file_path", "--present"], | |
| "name": "Run sketch fullscreen" | |
| }, | |
| { | |
| "cmd": ["processing.exe", "cli", "--force", "--sketch=$file_path", "--output=$file_path/application", "--export"], | |
| "name": "Export sketch as application" | |
| }, | |
| { | |
| "name": "Kill running sketches" , | |
| "windows": { | |
| "shell_cmd": "wmic process where \"Caption Like '%java.exe%' AND CommandLine Like '%$file_base_name%'\" call terminate 1>nul" | |
| }, | |
| "osx": { | |
| "cmd": "pkill -f ${project_base_name:\\$(basename \"$file_path\")}", "shell": true | |
| }, | |
| "linux": { | |
| "shell_cmd": "pkill -f \"java.*$file_path\\$\"" | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment