chore: add vscode build tasks
This commit is contained in:
parent
c02bb2dc84
commit
08dc3b4456
65
.vscode/tasks.json
vendored
Normal file
65
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "🛠 Setup Virtual Environment",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "${input:pythonPath}",
|
||||||
|
"args": ["setup.py"],
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "🔨 Build Executable",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "venv\\Scripts\\activate.ps1",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "🚀 Run Build Script",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "venv\\Scripts\\python.exe",
|
||||||
|
"args": [
|
||||||
|
"build.py"
|
||||||
|
],
|
||||||
|
// "options": {
|
||||||
|
// "cwd": "${workspaceFolder}/venv/Scripts"
|
||||||
|
// },
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "🛠 Full Build",
|
||||||
|
"type": "shell",
|
||||||
|
"dependsOn": [
|
||||||
|
"🛠 Setup Virtual Environment",
|
||||||
|
"🔨 Build Executable",
|
||||||
|
"🚀 Run Build Script"
|
||||||
|
],
|
||||||
|
"dependsOrder": "sequence",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"id": "pythonPath",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "Enter the full path to your Python executable",
|
||||||
|
"default": "C:\\Program Files\\Python39\\python.exe"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user