Skip to content

Commit

Permalink
Update launch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson authored Mar 9, 2024
1 parent 8b57b54 commit c8e11d6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,21 @@ def env_defined(key):
if env_defined("STEAM_ADDITIONAL_DEPOT"):
for depot in os.environ["STEAM_ADDITIONAL_DEPOT"].split("|"):
depot_parts = depot.split(",")
steamcmd.extend(["+login", os.environ["STEAM_USER"], os.environ["STEAM_PASSWORD"]])
steamcmd.extend(["+download_depot", "233780", depot_parts[0], depot_parts[1]])
steamcmd.extend(
["+login", os.environ["STEAM_USER"], os.environ["STEAM_PASSWORD"]]
)
steamcmd.extend(
["+download_depot", "233780", depot_parts[0], depot_parts[1]]
)
steamcmd.extend(["+quit"])
subprocess.call(steamcmd)

if env_defined("STEAM_ADDITIONAL_DEPOT"):
for depot in os.environ["STEAM_ADDITIONAL_DEPOT"].split("|"):
depot_parts = depot.split(",")
depot_dir = f"/steamcmd/linux32/steamapps/content/app_233780/depot_{depot_parts[0]}/"
depot_dir = (
f"/steamcmd/linux32/steamapps/content/app_233780/depot_{depot_parts[0]}/"
)
for file in os.listdir(depot_dir):
shutil.copytree(depot_dir + file, "/arma3/", dirs_exist_ok=True)
print(f"Moved {file} to /arma3")
Expand Down

0 comments on commit c8e11d6

Please sign in to comment.