Skip to content

Commit

Permalink
1.1.92
Browse files Browse the repository at this point in the history
  • Loading branch information
SillyNickDev committed Aug 9, 2024
1 parent 4f5e25e commit d193d3a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions matulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ def check_read_only_filesystem():

# Adds the Lutris PPA (Personal Package Archive) to the system's software sources, allowing you to install Lutris.
def add_lutris_ppa():
print("Adding the Lutris PPA for Ubuntu...")
print("Adding the Lutris PPA...")
run_command(["sudo", "add-apt-repository", "ppa:lutris-team/lutris", "-y"])
run_command(["sudo", "apt", "update"])

# Adds the i386 repository for Debian-based distros
def add_i386_repo():
print("Adding the i386 repository...")
run_command(["sudo", "apt-add-repository", "multiverse"])
run_command(["sudo", "apt", "update"])

# Installs a set of packages based on the detected Linux distribution.
def install_packages(distro):
kernel_version = subprocess.run(["uname", "-r"], capture_output=True, text=True).stdout.strip()
Expand All @@ -71,9 +77,10 @@ def install_packages(distro):
if distro in ["ubuntu", "debian"]:
run_command(["sudo", "apt", "update"])

if distro == "ubuntu":
# Add the Lutris PPA before attempting to install
add_lutris_ppa()
# Add the Lutris PPA before attempting to install
add_lutris_ppa()
# Add the i386 repository for Debian-based distros
add_i386_repo()

# Install Lutris and other packages
packages.append("lutris")
Expand Down

0 comments on commit d193d3a

Please sign in to comment.