switcheroo-control/pika-sources/usr/share/dpkg/scripts/steamdeps
Ward from fusion-voyager-3 cce8430c0d
Some checks failed
PikaOS Package Build Only (Canary) (amd64-v3) / build (push) Failing after 21s
PikaOS Package Build Only (amd64-v3) / build (push) Failing after 1s
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Failing after 13s
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 0s
port to pika os 4
2024-07-25 17:57:35 +03:00

25 lines
643 B
Python
Executable File

#!/usr/bin/env python3
"""
This script handles installing system dependencies for games using the
Steam runtime. It is intended to be customized by other distributions
to "do the right thing"
Usage: steamdeps dependencies.txt
"""
import argparse
import glob
import logging
import os
import re
import shlex
import shutil
import subprocess
import sys
check_output = subprocess.run(["dpkg -s libc6:amd64 && dpkg -s libc6:i386"], shell=True)
if (check_output.returncode) != 0:
subprocess.run(["/usr/bin/x-terminal-emulator -e bash -c 'sudo apt install -y libc6:amd64 libc6:i386'"], shell=True)
exit(0)
else:
exit(0)