Updated: Hooks with smart borwser install
Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
parent
98058f6ba6
commit
634815064a
|
@ -48,18 +48,33 @@ def install_min_browser():
|
|||
the .deb install stall the package, then remove the unneeded
|
||||
files. 64bit only
|
||||
"""
|
||||
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():
|
||||
|
|
Loading…
Reference in New Issue