You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you'd like to generate a standalone executable application for Ubuntu or Windows, you can follow the steps below.
63
+
64
+
65
+
> **Note:** f you only want to **run** the GUI app without generating a standalone executable, you can skip the build process and go straight to running the Python script as shown in
66
+
>
67
+
> **▶️ Running GUI app without build**.
68
+
69
+
### Ubuntu (Linux) - Build with build.sh
70
+
71
+
## 3. Build Executable (for Ubuntu and Windows)
72
+
If you'd like to generate a standalone executable application for Ubuntu or Windows, you can follow the steps below.
73
+
74
+
> **Note:** If you only want to **run** the app and not build it, skip this step and go to **▶️ Running GUI app without build**.
75
+
76
+
> **Alternative Option:** If you don't want to build the application yourself, you can **download pre-built executables** for both Ubuntu and Windows from [this link](#) (insert actual download link here).
77
+
78
+
### Ubuntu (Linux) - Build with build.sh
79
+
80
+
If you are using Ubuntu (or any other Linux-based OS), there's a script to automatically generate the application for you, and it will also add the application to your system's menu as a clickable entry.
81
+
82
+
1. Run the following command to build the executable:
83
+
84
+
```bash
85
+
sudo chmod +x build.sh
86
+
./build.sh
87
+
```
88
+
89
+
>**Note:**
90
+
This script will:
91
+
>* Cleans up previous build files (build/, dist/, .spec, __pycache__).
92
+
>* Create a virtual environment.
93
+
>* Install the necessary dependencies.
94
+
>* Use PyInstaller to build the application.
95
+
>* Copy the resulting executable to the appropriate folder.
96
+
>* Create a .desktop shortcut and add it to ~/.local/share/applications/, making the application available from your system's menu.
97
+
98
+
2. After running build.sh, you will find the built application in the dist/ folder. The .desktop file will also be placed in your system's application menu, allowing you to easily launch the application without needing to manually navigate to the executable.
99
+
### Windows - Build & Install
100
+
101
+
1. Run the following command to build the executable:
102
+
103
+
```powershell
104
+
./build.bat
105
+
```
106
+
>**Note:**
107
+
What build.bat does
108
+
>* Cleans up previous build files (build/, dist/, .spec, __pycache__).
109
+
>* Creates and activates a virtual environment (.venv/).
110
+
>* Installs dependencies from requirements.txt and installs PyInstaller.
111
+
>* Builds a standalone .exe from the Python script using PyInstaller and a custom icon.
112
+
>* Creates desktop and Start Menu shortcuts pointing to the executable, using the icon.
113
+
>* Deactivates the virtual environment and pauses for user review.
114
+
115
+
116
+
2. After running build.sh, you will find the built application in the dist/ folder. You will find also shortcuts on desktop as well as in the start menu on your system.
117
+
118
+
>**Alternative Option:** You can also **download pre-built executables**for Windows from [this link](#) (insert actual download link here).
0 commit comments