40 lines
1.4 KiB
JSON
40 lines
1.4 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "check env",
|
|
"type": "shell",
|
|
"command": "[ -n \"$VINTAGE_STORY\" ] || { echo 'ERROR: VINTAGE_STORY is not set'; exit 1; }; [ -n \"$VINTAGE_STORY_DATA\" ] || { echo 'ERROR: VINTAGE_STORY_DATA is not set'; exit 1; }",
|
|
"windows": {
|
|
"command": "if (-not $env:VINTAGE_STORY) { Write-Host 'ERROR: VINTAGE_STORY is not set'; exit 1 }; if (-not $env:VINTAGE_STORY_DATA) { Write-Host 'ERROR: VINTAGE_STORY_DATA is not set'; exit 1 }"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "build mod",
|
|
"command": "dotnet",
|
|
"type": "process",
|
|
"dependsOn": ["check env"],
|
|
"dependsOrder": "sequence",
|
|
"args": [
|
|
"build",
|
|
"${workspaceFolder}/WolfTamingExtras/WolfTamingExtras.csproj",
|
|
"-c",
|
|
"${input:buildConfig}",
|
|
"/property:GenerateFullPaths=true",
|
|
"/consoleloggerparameters:NoSummary;ForceNoAlign"
|
|
],
|
|
"problemMatcher": "$msCompile"
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "buildConfig",
|
|
"type": "pickString",
|
|
"description": "Build configuration",
|
|
"options": ["Debug", "Release", "Version22"],
|
|
"default": "Debug"
|
|
}
|
|
]
|
|
}
|