Improved tasks once more
This commit is contained in:
parent
97bea5cd90
commit
cf0c8f8e4c
16
.vscode/tasks.json
vendored
16
.vscode/tasks.json
vendored
@ -48,5 +48,21 @@
|
||||
},
|
||||
"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": []
|
||||
}
|
||||
]
|
||||
}
|
2
.vscode/tasks/linux/build.sh
vendored
2
.vscode/tasks/linux/build.sh
vendored
@ -1,4 +1,4 @@
|
||||
#/bin/bash
|
||||
#!/bin/bash
|
||||
|
||||
rm -rf dist/linux/app
|
||||
|
||||
|
2
.vscode/tasks/linux/cleanup.sh
vendored
2
.vscode/tasks/linux/cleanup.sh
vendored
@ -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.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]"
|
2
.vscode/tasks/linux/configure_setup.sh
vendored
2
.vscode/tasks/linux/configure_setup.sh
vendored
@ -1,3 +1,3 @@
|
||||
#/bin/bash
|
||||
#!/bin/bash
|
||||
|
||||
# .\dist\InstallForge\install_forge.ifp
|
7
.vscode/tasks/linux/install_requirements.sh
vendored
Normal file
7
.vscode/tasks/linux/install_requirements.sh
vendored
Normal 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
3
.vscode/tasks/linux/run.sh
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
.vscode/tasks/linux/cleanup.bat && venv/bin/activate && python main.py && deactivate
|
2
.vscode/tasks/linux/test.sh
vendored
2
.vscode/tasks/linux/test.sh
vendored
@ -1,4 +1,4 @@
|
||||
#/bin/bash
|
||||
#!/bin/bash
|
||||
|
||||
cd dist/linux/app
|
||||
./StardewSync
|
5
.vscode/tasks/windows/install_requirements.bat
vendored
Normal file
5
.vscode/tasks/windows/install_requirements.bat
vendored
Normal 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
1
.vscode/tasks/windows/run.bat
vendored
Normal file
@ -0,0 +1 @@
|
||||
.\.vscode\tasks\windows\cleanup.bat && venv\Scripts\activate && python main.py && deactivate
|
Loading…
Reference in New Issue
Block a user