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 bdb7b49 commit 29c0f58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ def env_defined(key):
steamcmd.extend(["validate"])
if env_defined("STEAM_ADDITIONAL_DEPOT"):
for depot in os.environ["STEAM_ADDITIONAL_DEPOT"].split("|"):
depot = depot.split(",")
depot_parts = depot.split(",")
steamcmd.extend(["+login", os.environ["STEAM_USER"], os.environ["STEAM_PASSWORD"]])
steamcmd.extend(["+download_depot", "233780", depot[0], depot[1]])
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 = depot.split(",")
depot_dir = f"/steamcmd/linux32/steamapps/content/app_233780/depot_{depot[0]}/"
depot_parts = depot.split(",")
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, f"/arma3/", dirs_exist_ok=True)
print(f"Moved {file} to /arma3")
Expand Down

0 comments on commit 29c0f58

Please sign in to comment.