Improved tasks once more

This commit is contained in:
Profitroll 2023-01-27 15:53:55 +01:00
parent 97bea5cd90
commit cf0c8f8e4c
9 changed files with 36 additions and 4 deletions

16
.vscode/tasks.json vendored
View File

@ -48,5 +48,21 @@
}, },
"problemMatcher": [] "problemMatcher": []
}, },
{
"label": "Install requirements",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/install_requirements.bat"
},
"problemMatcher": []
},
{
"label": "Run",
"type": "shell",
"windows": {
"command": "./.vscode/tasks/windows/run.bat"
},
"problemMatcher": []
}
] ]
} }

View File

@ -1,4 +1,4 @@
#/bin/bash #!/bin/bash
rm -rf dist/linux/app rm -rf dist/linux/app

View File

@ -1,4 +1,4 @@
#/bin/bash #!/bin/bash
python -Bc "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]" 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__')]" python -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]"

View File

@ -1,3 +1,3 @@
#/bin/bash #!/bin/bash
# .\dist\InstallForge\install_forge.ifp # .\dist\InstallForge\install_forge.ifp

View File

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

3
.vscode/tasks/linux/run.sh vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
.vscode/tasks/linux/cleanup.bat && venv/bin/activate && python main.py && deactivate

View File

@ -1,4 +1,4 @@
#/bin/bash #!/bin/bash
cd dist/linux/app cd dist/linux/app
./StardewSync ./StardewSync

View File

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

1
.vscode/tasks/windows/run.bat vendored Normal file
View File

@ -0,0 +1 @@
.\.vscode\tasks\windows\cleanup.bat && venv\Scripts\activate && python main.py && deactivate