Add support for Arch, btw

This commit is contained in:
Antonio SJ Musumeci 2026-03-13 15:46:18 -05:00
parent 04939bbe72
commit 4d2b6d48a2
6 changed files with 42 additions and 15 deletions

View file

@ -47,12 +47,23 @@ def build(git_repo,
def setup():
args = ['sudo',
'apt-get',
'install',
'-fy',
'qemu-user-static',
'qemu-user-binfmt']
# Detect distribution
if os.path.exists('/usr/bin/apt-get'):
args = ['sudo',
'apt-get',
'install',
'-fy',
'qemu-user-static',
'qemu-user-binfmt']
elif os.path.exists('/usr/bin/pacman'):
args = ['sudo',
'pacman',
'-Sy',
'--noconfirm',
'qemu-user-static']
else:
print("Unsupported distribution for setup")
sys.exit(1)
print(args)
subprocess.run(args)