And one more tasks update

This commit is contained in:
Profitroll 2023-01-27 16:09:07 +01:00
parent 437a37f569
commit a37196ab22
5 changed files with 58 additions and 0 deletions

22
.vscode/tasks.json vendored
View File

@ -14,6 +14,17 @@
}, },
"problemMatcher": [] "problemMatcher": []
}, },
{
"label": "Clean up everything",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/cleanup_everything.bat"
},
"linux": {
"command": "bash ./.vscode/tasks/linux/cleanup_everything.sh"
},
"problemMatcher": []
},
{ {
"label": "Build", "label": "Build",
"type": "shell", "type": "shell",
@ -48,6 +59,17 @@
}, },
"problemMatcher": [] "problemMatcher": []
}, },
{
"label": "Install build requirements",
"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", "label": "Install requirements",
"type": "shell", "type": "shell",

View File

@ -0,0 +1,13 @@
#!/bin/bash
python -Bc "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]"
python -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]"
rm -rf build/linux/*
rm -rf build/windows/*
rm -rf dist/linux/app
rm -rf dist/windows/app
rm -rf venv
rm -rf buildenv

View File

@ -0,0 +1,7 @@
#!/bin/bash
pip install virtualenv
virtualenv buildenv
buildenv/Scripts/activate && pip install --upgrade Pyinstaller && pip install --upgrade -r requirements.txt && deactivate

View File

@ -0,0 +1,11 @@
python -Bc "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]"
python -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]"
rmdir /S /Q build\linux\*
rmdir /S /Q build\windows\*
rmdir /S /Q dist\linux\app
rmdir /S /Q dist\windows\app
rmdir /S /Q venv
rmdir /S /Q buildenv

View File

@ -0,0 +1,5 @@
pip install virtualenv
virtualenv buildenv
buildenv\Scripts\activate && pip install --upgrade Pyinstaller && pip install --upgrade -r requirements.txt && deactivate