66 lines
1.8 KiB
JSON
66 lines
1.8 KiB
JSON
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|