And one more tasks update
This commit is contained in:
parent
437a37f569
commit
a37196ab22
22
.vscode/tasks.json
vendored
22
.vscode/tasks.json
vendored
@ -14,6 +14,17 @@
|
||||
},
|
||||
"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",
|
||||
"type": "shell",
|
||||
@ -48,6 +59,17 @@
|
||||
},
|
||||
"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",
|
||||
"type": "shell",
|
||||
|
13
.vscode/tasks/linux/cleanup_everything.sh
vendored
Normal file
13
.vscode/tasks/linux/cleanup_everything.sh
vendored
Normal 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
|
7
.vscode/tasks/linux/install_build_requirements.sh
vendored
Normal file
7
.vscode/tasks/linux/install_build_requirements.sh
vendored
Normal 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
|
11
.vscode/tasks/windows/cleanup_everything.bat
vendored
Normal file
11
.vscode/tasks/windows/cleanup_everything.bat
vendored
Normal 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
|
5
.vscode/tasks/windows/install_build_requirements.bat
vendored
Normal file
5
.vscode/tasks/windows/install_build_requirements.bat
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
pip install virtualenv
|
||||
|
||||
virtualenv buildenv
|
||||
|
||||
buildenv\Scripts\activate && pip install --upgrade Pyinstaller && pip install --upgrade -r requirements.txt && deactivate
|
Loading…
Reference in New Issue
Block a user