Quality of life (#50)

* updated requirements.txt according to GRIMM's instructions

* added launch configuration and build tasks for VS Code

* updated build scripts and documentation
This commit is contained in:
David Pierron
2023-05-19 07:16:38 +02:00
committed by GitHub
parent bca47d63d6
commit e8bd6b2972
6 changed files with 110 additions and 2 deletions

View File

@@ -1,4 +1,15 @@
call .\venv\Scripts\activate.bat
IF EXIST ".\venv" (
call .\venv\Scripts\activate.bat
) ELSE (
IF EXIST "..\.venv" (
rem try to activate venv from root directory (VS Code default)
call ..\.venv\Scripts\activate.bat
) ELSE (
echo "venv not found. Please create a virtual environment and activate it."
pause >nul
exit
)
)
echo activated python venv.
pyuic5 -x MissionGeneratorUI.ui -o MissionGeneratorUI.py
@@ -10,4 +21,6 @@ echo compiled ui resource files.
echo building exe with pyinstaller...
pyinstaller MissionGenerator.spec --distpath ..\ --clean
pause >nul
if not %1=="-nopause" (
pause >nul
)