diff --git a/iso_configs/pylibraries/pepperpy/hooks.py b/iso_configs/pylibraries/pepperpy/hooks.py index 30d911fc..61ea2775 100644 --- a/iso_configs/pylibraries/pepperpy/hooks.py +++ b/iso_configs/pylibraries/pepperpy/hooks.py @@ -48,18 +48,33 @@ def install_min_browser(): the .deb install stall the package, then remove the unneeded files. 64bit only """ - url = ( - "https://github.com/minbrowser/min/releases/download/" - "v1.32.1/min-1.32.1-amd64.deb" - ) - destination = "/opt" - wget_command = f"wget -P {destination} {url}" - - os.system(wget_command) - os.system('dpkg -i /opt/min-1.32.1-amd64.deb') - os.system('apt-get install -f') - os.system('rm /usr/share/applications/min.desktop') - os.system('rm /opt/min-1.32.1-amd64.deb') + path_to_file = '/opt/pepconf/' + build_id_list = [ + path_to_file + 'deb64xfce', + path_to_file + 'dev64xfce', + path_to_file + 'debarmxfce', + path_to_file + 'devarmxfce', + path_to_file + 'deb64gfb', + path_to_file + 'dev64gfb', + path_to_file + 'deb64opb', + path_to_file + 'dev64opb' + ] + for build_id in build_id_list: + if os.path.exists(build_id): + url = ( + "https://github.com/minbrowser/min/releases/download/" + "v1.32.1/min-1.32.1-amd64.deb" + ) + destination = "/opt" + wget_command = f"wget -P {destination} {url}" + os.system(wget_command) + os.system('dpkg -i /opt/min-1.32.1-amd64.deb') + os.system('apt-get install -f') + os.system('rm /usr/share/applications/min.desktop') + os.system('rm /opt/min-1.32.1-amd64.deb') + print("Browser installed!" + else + print("No builds were met not installed") def setup_plymouth_theme_grub():