csc301-2023-fall / project-34-qeynet-inc-t

Repository for Astra, a U of T CSC301 team project developed for QEYnet.
MIT License
0 stars 1 forks source link

Improve the deployment process #34

Open shape-warrior-t opened 8 months ago

shape-warrior-t commented 8 months ago

Currently, deploying the application is a manual process that requires a few steps to complete (most notably running PyInstaller and moving the Astra logo file into the correct place). For reference, the following commands should successfully clone this repo and build the application from the repo code:

git clone https://github.com/csc301-2023-fall/project-34-qeynet-inc-t.git
cd project-34-qeynet-inc-t
py.exe -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
pip install pyinstaller
pyinstaller src/main.py --name astra
copy logo.png dist\astra\logo.png

(Note: make sure PyInstaller is installed in the correct Python environment. PyInstaller installed in one's main Python environment does not incorporate dependencies in the same way as PyInstaller installed in a dedicated virtual environment.)

It might be worth looking at automating deployment, or failing that, at least removing the need to move logo.png into the correct place.