Install OS packages from auto-update

Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
jayofelony
2024-03-22 08:37:22 +01:00
parent c7b94a0707
commit 4b04f9b7a5
2 changed files with 6 additions and 0 deletions

1
apt_packages.txt Normal file
View File

@ -0,0 +1 @@
bluez-tools

View File

@ -31,6 +31,11 @@ def install_file(source_filename, dest_filename):
def install_system_files(): def install_system_files():
f = open("apt_packages.txt", "r")
for x in f:
os.system(f"apt-get install -y {x}")
f.close()
setup_path = os.path.dirname(__file__) setup_path = os.path.dirname(__file__)
if platform.machine().startswith('arm'): if platform.machine().startswith('arm'):
data_path = os.path.join(setup_path, "builder/data/32bit") data_path = os.path.join(setup_path, "builder/data/32bit")