Skip to content

Commit

Permalink
Exclude windows + linux, removed shell for cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
eppfel committed Feb 2, 2015
1 parent 0bb07d2 commit e6a054d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions JXA.sublime-build
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
{
"shell_cmd": "osacompile -l JavaScript -o $file_base_name.scpt $file_name",
"cmd": ["echo", "Error: JXA Build System is only supported on MAC OSX"],
"osx" : {
"cmd": ["osacompile", "-l", "JavaScript", "-o", "$file_base_name.scpt", "$file_name"]
},
"variants": [
{
"name": "Run",
"shell_cmd": "osascript -l JavaScript $file_name"
"osx" : {
"cmd": ["osascript", "-l", "JavaScript", "$file_name"]
}
},
{
"name": "Build App",
"shell_cmd": "osacompile -l JavaScript -o $file_base_name.app $file_name"
"osx" : {
"cmd": ["osacompile", "-l", "JavaScript", "-o", "$file_base_name.app", "$file_name"]
}
},
{
"name": "Build Script Bundle",
"shell_cmd": "osacompile -l JavaScript -o $file_base_name.scptd $file_name"
"osx" : {
"cmd": ["osacompile", "-l", "JavaScript", "-o", "$file_base_name.scptd", "$file_name"]
}
}
]
}

0 comments on commit e6a054d

Please sign in to comment.