Skip to content

Commit e6bfb79

Browse files
committed
chore(dev): add build & sync commands to vscode tasks
1 parent 0ae9227 commit e6bfb79

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "sync",
8+
"type": "shell",
9+
"command": "lftp -c \"open -u $LINUX_SERVER_SFTP_USERNAME,$LINUX_SERVER_SFTP_PASSWORD $LINUX_SERVER_SFTP_HOST; mirror -R /workspaces/CounterStrikeSharp/build/addons /game/csgo/addons\"",
10+
"dependsOn": "build",
11+
"problemMatcher": []
12+
},
13+
{
14+
"label": "build",
15+
"type": "shell",
16+
"command": "cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo && cmake --build build -j$(nproc)",
17+
"group": "build"
18+
}
19+
]
20+
}

0 commit comments

Comments
 (0)