Building a Windows Application Using pyinstaller
To create the Windows application, follow these steps:
-
Build the Frontend:
Navigate to the
frontend
directory and run the following commands to install dependencies and build the frontend: -
Copy Built Files:
-
Copy the built frontend files into the
dist
directory located in thebackend
folder:
-
-
Set Up the Backend:
-
Move to the
backend
directory. Remove existingdb.sqlite3
andprivate_key.pem
if present:rm db.sqlite3 private_key.pem
.Initialize empty DB and private key. Simply run the
server.py
script and exit (note that before running this command you need to install dependencies:pip3 install -r requirements.txt
):You should see:
-
-
Build the Application:
-
Install PyInstaller using the command:
-
Run the PyInstaller command to compile the application:
-
This will generate the Windows application in the out
directory.