SyncTk/.vscode/tasks.json
2023-01-28 18:45:57 +01:00

120 lines
4.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": "Clean up",
"detail": "Remove all .pyco and and __pycache__ in the whole project",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/cleanup.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/cleanup.sh"
},
"problemMatcher": []
},
{
"label": "Clean up everything",
"detail": "Remove all .pyco and __pycache__ as well as virtual envs, build and dist dirs",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/cleanup_everything.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/cleanup_everything.sh"
},
"problemMatcher": [],
"dependsOn": ["Clean up"]
},
{
"label": "Run (Python)",
"detail": "Copy source code from 'src' dir into 'testpython' and start main.py within venv",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/run_python.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/run_python.sh"
},
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": [],
"dependsOn": ["Clean up", "Install requirements"]
},
{
"label": "Run (Binary)",
"detail": "Copy compiled binaries from 'dest/%os%' dir into 'testbinary/%os%' and start it",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/run_binary.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/run_binary.sh"
},
"group": {
"kind": "test",
"isDefault": false
},
"problemMatcher": [],
"dependsOn": ["Build"]
},
{
"label": "Configure Setup",
"detail": "Configure IF setup file on Windows and .deb package on Linux",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/configure_setup.bat"
},
"linux": {
"command": "echo \"Not implemented\""
},
"problemMatcher": [],
"dependsOn": ["Clean up"]
},
{
"label": "Install build requirements",
"detail": "Create buildenv and install the modules to run Pyinstaller's build",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/install_build_requirements.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/install_build_requirements.sh"
},
"problemMatcher": []
},
{
"label": "Install requirements",
"detail": "Create venv and install the modules to run 'src/main.py'",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/install_requirements.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/install_requirements.sh"
},
"problemMatcher": []
},
{
"label": "Build",
"detail": "Configure .spec and run Pyinstaller",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/build.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/build.sh"
},
"problemMatcher": [],
"dependsOn": ["Clean up", "Install build requirements"],
"group": {
"kind": "build",
"isDefault": true
}
},
]
}