Here is a working solution vor OSX
Code:
{
"version": "2.0.0",
"options": {
"env": {
"mainFile" : "myMainFile.pb",
"appName" : "myAppName",
"PUREBASIC_HOME": "/Applications/PureBasic_562_x64.app/Contents/Resources",
}
},
"tasks": [
{
"label": "Compile (test)",
"type": "shell",
"command": "pbcompiler -e ${appName}.app -d -t -f -ibp -o PB_Editor_CreateExecutable=1 ${mainFile}",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$eslint-compact"
]
},
{
"label": "Compile (build)",
"type": "shell",
"command": "pbcompiler -e ${appName}.app -t -f -o PB_Editor_CreateExecutable=1 ${mainFile}",
"group": "build",
"problemMatcher": []
},
{
"label": "Run",
"type": "shell",
"command": "${appName}.app/Contents/MacOS/${appName}",
"dependsOn": [
"Compile (test)"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
}
]
}