IAHispano / Applio

A simple, high-quality voice conversion tool focused on ease of use and performance
https://applio.org
MIT License
1.81k stars 292 forks source link

Obtimizations and improvedments for run-install.sh #788

Closed aris-py closed 1 month ago

aris-py commented 1 month ago

Description

Obtimizations for run-install.sh and install ffmpeg funcion

Changes

Shebang Change: This now reflects #!/bin/bash for better compatibility with different systems. Error Handling: Added set -e to the beginning to make sure the script exits if any of the commands fail. Logging Function: I have implemented log_message() to log messages including their timestamps. Python Version Detection: I used the function find_python() which searches in order for python3.10, then python3, and finally python. • FFmpeg Installation: Improved install_ffmpeg() with command -v instead of which; improved Flatpak fallback mechanism. • Flatpak Installation: Improved install_ffmpeg_flatpak() to be able to install Flatpak if not present. Handling more package managers. • Virtual Environment Handling: The logic in prepare_install() and create_venv() has been improved to better create and activate the virtual environment. • Package Installation: Simplified logic around installing the dependencies; several verification steps were added to finish().

How has this been tested?

Tested on Ubuntu Cinnamon

Screenshots (if appropriate):

Types of changes

Checklist: