Building a Windows Application Using pyinstaller
To create the Windows application, follow these steps:
-
Build the Frontend:
Navigate to the
frontenddirectory and run the following commands to install dependencies and build the frontend: -
Copy Built Files:
-
Copy the built frontend files into the
distdirectory located in thebackendfolder:
-
-
Set Up the Backend:
-
Move to the
backenddirectory. Remove existingdb.sqlite3andprivate_key.pemif present:rm db.sqlite3 private_key.pem.Initialize empty DB and private key. Simply run the
server.pyscript 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.