https://github.com/Sypher1k/telegram-repacket-groups/tree/main In this guide, we'll walk through the steps to run a Python application with a required virtual environment and how to publish it using PyInstaller.
Clone the repository from GitHub:
git clone https://github.com/Sypher1k/telegram-repacket-groups.git
cd telegram-repacket-groups
Create a virtual environment:
python -m venv venv
Activate the virtual environment:
source venv/bin/activate #On Windows use `venv\Scripts\activate
Install dependencies from the requirements.txt file:
pip install -r requirements.txt
Run the Python application:
python app.py
Install PyInstaller:
pip install pyinstaller
Generate the executable using PyInstaller:
pyinstaller --onefile app.py
This command will generate a single executable file in the dist directory.
PyInstaller Command Options:
- --onefile: Pack everything into a single executable.
Configuration All configuration settings are stored in the config.ini file. Update this file with the necessary settings before running the application.
Example config.ini:
[settings]
key1 = value1
key2 = value2
Following these steps, you can easily run a Python application with required virtual environment and publish it as an executable using PyInstaller.
For more information on PyInstaller, refer to the PyInstaller Documentation.