SyncTk/.vscode/tasks.json

155 lines
5.4 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) [Dirty]",
"detail": "Remove all cache files 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"]
},
{
"label": "Run (Python) [Clean]",
"detail": "Needs to be ran before the dirty version can be used. Copy source code from 'src' dir into 'testpython', install requirements and start main.py within venv",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/flush_and_run_python.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/flush_and_run_python.sh"
},
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": [],
"dependsOn": ["Clean up"]
//, "Install requirements"]
},
{
"label": "Run (Binary) [Dirty]",
"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": "Run (Binary) [Clean]",
"detail": "Needs to be ran before the dirty version can be used. Copy compiled binaries from 'dest/%os%' dir into 'testbinary/%os%' and start it",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/flush_and_run_binary.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/flush_and_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
}
},
]
}