56 lines
2.1 KiB
JSON
56 lines
2.1 KiB
JSON
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "build",
|
|
"command": "dotnet",
|
|
"type": "shell",
|
|
"args": [
|
|
"build",
|
|
"${workspaceFolder:workspace}/src/Kinopoisk.sln",
|
|
// Ask dotnet build to generate full paths for file names.
|
|
"/property:GenerateFullPaths=true",
|
|
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
|
|
"/consoleloggerparameters:NoSummary",
|
|
"/property:Version=10.7.0.2"
|
|
],
|
|
"group": "build",
|
|
"presentation": {
|
|
"reveal": "silent"
|
|
},
|
|
"problemMatcher": "$msCompile"
|
|
},
|
|
{
|
|
"label": "publish-to-run",
|
|
"command": "dotnet",
|
|
"type": "shell",
|
|
"args": [
|
|
"publish",
|
|
"${workspaceFolder:workspace}/src/Jellyfin.Plugin.Kinopoisk/Jellyfin.Plugin.Kinopoisk.csproj",
|
|
"--output", "/jellyfin-data/plugins/kinopoisk",
|
|
"/property:GenerateFullPaths=true",
|
|
"/property:Version=10.7.0.2"
|
|
],
|
|
"group": "build",
|
|
"problemMatcher": "$msCompile"
|
|
},
|
|
{
|
|
"label": "make-dist",
|
|
"command": "powershell",
|
|
"type": "shell",
|
|
"args": [
|
|
"Compress-Archive",
|
|
"-Path", "${workspaceFolder:workspace}/src/Jellyfin.Plugin.Kinopoisk/bin/Debug/net5.0/Jellyfin.Plugin.Kinopoisk.dll,${workspaceFolder:workspace}/src/Jellyfin.Plugin.Kinopoisk.Test/bin/Debug/net5.0/Macross.Json.Extensions.dll",
|
|
"-DestinationPath", "${workspaceFolder:workspace}/dist/jellyfin-plugin-kinopoisk_10.7.0.2.zip"
|
|
],
|
|
"group": "build",
|
|
"presentation": {
|
|
"reveal": "silent"
|
|
},
|
|
"problemMatcher": "$msCompile"
|
|
}
|
|
]
|
|
}
|