⚠️ This repository has been archived. BrainDrive is building a new personal AI system on top of the Personal AI Architecture — an MIT-licensed, open architecture with zero lock-in. See the architecture repo for the foundation, and visit braindrive.ai for updates.
⚠️ Archived Project
This project is no longer actively maintained by the original authors.
The repository remains available for reference and community use.
This Python script automates the process of checking for and updating the OpenWebUI installer to the latest version. It fetches release data from the GitHub repository, compares the installed version with the latest version, and downloads the latest installer if necessary.
- Version Checking: Compares the installed version of the installer with the latest version available on GitHub.
- Automatic Download: Downloads the latest version of the installer if an update is available.
- Error Handling: Includes error handling for network issues, file permission errors, and other unexpected failures.
- Configuration File: Stores the installation directory and the current version in a configuration file to keep track of updates.
- Python 3.8 or higher
requestslibrarydulwichlibrary (for GitHub interaction)
- Clone the repository:
git clone https://github.com/BrainDriveAI/InstallerAutoUpdater.git
- Navigate to the project directory:
cd InstallerAutoUpdater - Install dependencies:
pip install -r requirements.txt
python InstallerAutoUpdater.py- Configuration File: When first run, the script will create a
config.jsonfile to store the installation directory and version. - Check for Updates: The script checks for the latest release from the OpenWebUI_CondaInstaller GitHub repository.
- Download New Version: If an update is available, the latest installer is downloaded.
- Run Installer: After downloading the new installer, it will be executed.
The script uses a configuration file (config.json) located in the installation directory (OpenWebUI). The file stores:
install_dir: The directory where the installer is located.current_version: The current installed version.last_checked: The last time an update check was performed.
The configuration file is automatically created when the script is run for the first time.
The script includes basic error handling for:
- Network Issues: If there is no internet connection, it will notify the user.
- Timeouts: In case of network delays or timeouts, the script will ask the user to try again.
- File Permission Errors: If there is an issue running the installer or accessing files, it will provide helpful messages.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to fork the repository, open issues, and submit pull requests for improvements or bug fixes.
- This script interacts with the OpenWebUI_CondaInstaller GitHub repository for release updates.