-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfile1.python
More file actions
21 lines (18 loc) · 810 Bytes
/
Copy pathfile1.python
File metadata and controls
21 lines (18 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
def main():
# Read list of App IDs from a JSON config file, for example:
with open("app_ids.json", "r") as f:
app_ids = json.load(f)
for app_id in app_ids["app_ids"]:
# 1. Get public IDs from SteamDB
depot_id, manifest_id = get_public_ids(app_id)
if not depot_id or not manifest_id:
print(f"[*] No depot or manifest found for App ID: {app_id}")
continue
# 2. Get private key from Steam
depot_key = get_depot_key(app_id, depot_id)
if not depot_key:
print(f"[*] Unable to retrieve depot key for App ID: {app_id}")
continue
# 3. Generate the final files
generate_lua_file(app_id, depot_id, manifest_id, depot_key)
download_manifest_file(depot_id, manifest_id, depot_key)