SyncTk/.vscode/tasks.json

155 lines
5.4 KiB
JSON
Raw Normal View History

2023-01-26 11:58:20 +02:00
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Clean up",
2023-01-28 19:45:57 +02:00
"detail": "Remove all .pyco and and __pycache__ in the whole project",
2023-01-26 11:58:20 +02:00
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/cleanup.bat"
},
"linux": {
2023-01-27 16:55:09 +02:00
"command": "bash ./.vscode/tasks/linux/cleanup.sh"
},
2023-01-27 13:17:46 +02:00
"problemMatcher": []
},
2023-01-27 17:09:07 +02:00
{
"label": "Clean up everything",
2023-01-28 19:45:57 +02:00
"detail": "Remove all .pyco and __pycache__ as well as virtual envs, build and dist dirs",
2023-01-27 17:09:07 +02:00
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/cleanup_everything.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/cleanup_everything.sh"
},
2023-01-28 19:45:57 +02:00
"problemMatcher": [],
"dependsOn": ["Clean up"]
2023-01-27 17:09:07 +02:00
},
2023-01-27 13:17:46 +02:00
{
2023-01-29 12:06:23 +02:00
"label": "Run (Python) [Dirty]",
"detail": "Remove all cache files and start main.py within venv",
2023-01-27 13:17:46 +02:00
"type": "shell",
"windows": {
2023-01-28 19:45:57 +02:00
"command": "./.vscode/tasks/windows/run_python.bat"
},
"linux": {
2023-01-28 19:45:57 +02:00
"command": "bash ./.vscode/tasks/linux/run_python.sh"
},
2023-01-27 13:17:46 +02:00
"group": {
2023-01-28 19:45:57 +02:00
"kind": "test",
2023-01-27 13:17:46 +02:00
"isDefault": true
2023-01-28 19:45:57 +02:00
},
"problemMatcher": [],
2023-01-29 12:06:23 +02:00
"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"]
2023-01-27 13:17:46 +02:00
},
{
2023-01-29 12:06:23 +02:00
"label": "Run (Binary) [Dirty]",
2023-01-28 19:45:57 +02:00
"detail": "Copy compiled binaries from 'dest/%os%' dir into 'testbinary/%os%' and start it",
2023-01-27 13:17:46 +02:00
"type": "shell",
"windows": {
2023-01-28 19:45:57 +02:00
"command": "./.vscode/tasks/windows/run_binary.bat"
},
"linux": {
2023-01-28 19:45:57 +02:00
"command": "bash ./.vscode/tasks/linux/run_binary.sh"
},
2023-01-28 19:45:57 +02:00
"group": {
"kind": "test",
"isDefault": false
2023-01-29 12:06:23 +02:00
},
"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
2023-01-28 19:45:57 +02:00
},
"problemMatcher": [],
"dependsOn": ["Build"]
2023-01-27 14:55:57 +02:00
},
{
"label": "Configure Setup",
2023-01-28 19:45:57 +02:00
"detail": "Configure IF setup file on Windows and .deb package on Linux",
2023-01-27 14:55:57 +02:00
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/configure_setup.bat"
},
2023-01-27 17:35:19 +02:00
"linux": {
"command": "echo \"Not implemented\""
},
2023-01-28 19:45:57 +02:00
"problemMatcher": [],
"dependsOn": ["Clean up"]
2023-01-27 14:55:57 +02:00
},
2023-01-27 17:09:07 +02:00
{
"label": "Install build requirements",
2023-01-28 19:45:57 +02:00
"detail": "Create buildenv and install the modules to run Pyinstaller's build",
2023-01-27 17:09:07 +02:00
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/install_build_requirements.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/install_build_requirements.sh"
},
"problemMatcher": []
},
2023-01-27 16:53:55 +02:00
{
"label": "Install requirements",
2023-01-28 19:45:57 +02:00
"detail": "Create venv and install the modules to run 'src/main.py'",
2023-01-27 16:53:55 +02:00
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/install_requirements.bat"
},
2023-01-27 16:55:09 +02:00
"linux": {
"command": "bash ./.vscode/tasks/linux/install_requirements.sh"
},
2023-01-27 16:53:55 +02:00
"problemMatcher": []
},
{
2023-01-28 19:45:57 +02:00
"label": "Build",
"detail": "Configure .spec and run Pyinstaller",
2023-01-27 16:53:55 +02:00
"type": "shell",
"windows": {
2023-01-28 19:45:57 +02:00
"command": "./.vscode/tasks/windows/build.bat"
2023-01-27 16:53:55 +02:00
},
2023-01-27 16:55:09 +02:00
"linux": {
2023-01-28 19:45:57 +02:00
"command": "bash ./.vscode/tasks/linux/build.sh"
2023-01-27 16:55:09 +02:00
},
2023-01-28 19:45:57 +02:00
"problemMatcher": [],
"dependsOn": ["Clean up", "Install build requirements"],
"group": {
"kind": "build",
"isDefault": true
}
},
2023-01-26 11:58:20 +02:00
]
}