37 lines
1.3 KiB
JSON
37 lines
1.3 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Build - Linux",
|
|
"type": "shell",
|
|
"command": "cargo build --release && mkdir -p build/linux && cp target/release/tui-fm build/linux/tui-fm",
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared"
|
|
},
|
|
"problemMatcher": "$rustc",
|
|
"detail": "Bygger tui-fm för Linux och kopierar binären till build/linux/"
|
|
},
|
|
{
|
|
"label": "Build - Windows",
|
|
"type": "shell",
|
|
"command": "cargo build --release --target x86_64-pc-windows-gnu && mkdir -p build/windows && cp target/x86_64-pc-windows-gnu/release/tui-fm.exe build/windows/tui-fm.exe",
|
|
"group": "build",
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared"
|
|
},
|
|
"problemMatcher": "$rustc",
|
|
"detail": "Bygger tui-fm för Windows (kräver mingw-w64 och rustup target add x86_64-pc-windows-gnu)"
|
|
}
|
|
]
|
|
}
|