Skip to content

Commit e6199f8

Browse files
committed
Fix DepotDownloader timing out
1 parent dd70e48 commit e6199f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Steam.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $references_file = Join-Path $tools_dir ".references"
4141
New-Item "$tools_dir", "$managed_dir", "$docs_dir" -ItemType Directory -Force | Out-Null
4242

4343
# Set URLs of dependencies and tools to download
44-
$steam_depotdl_url = "https://github.com/SteamRE/DepotDownloader/releases/download/DepotDownloader_2.5.0/depotdownloader-2.5.0.zip"
44+
$steam_depotdl_url = "https://img.mrblue.io/bf641959245341c381cffc95f38a2bc6.zip"
4545
$de4dot_url = "https://github.com/0xd4d/de4dot/suites/507020524/artifacts/2658127"
4646
$patcher_url = "https://github.com/OxideMod/Oxide.Patcher/releases/download/latest/OxidePatcher.exe"
4747

@@ -102,7 +102,7 @@ function Find-Dependencies {
102102

103103
function Get-Downloader {
104104
# Check if DepotDownloader is already downloaded
105-
$steam_depotdl_dll = Join-Path $tools_dir "DepotDownloader.dll"
105+
$steam_depotdl_dll = Join-Path $tools_dir "DepotDownloader.exe"
106106
$steam_depotdl_zip = Join-Path $tools_dir "DepotDownloader.zip"
107107
if (!(Test-Path $steam_depotdl_dll) -or (Get-Item $steam_depotdl_dll).LastWriteTime -lt (Get-Date).AddDays(-7)) {
108108
# Download and extract DepotDownloader
@@ -167,7 +167,7 @@ function Get-Dependencies {
167167
# Attempt to run DepotDownloader to get game DLLs
168168
try {
169169
Write-Host "$steam_access -app $steam_appid -branch $steam_branch $steam_depot -os $platform -dir $deps_dir"
170-
Start-Process dotnet -WorkingDirectory $tools_dir -ArgumentList "$steam_depotdl_dll $steam_access -app $steam_appid -branch $steam_branch $steam_depot -os $platform -dir $platform_dir -filelist $references_file" -NoNewWindow -Wait
170+
Start-Process $steam_depotdl_dll -WorkingDirectory $tools_dir -ArgumentList "$steam_access -app $steam_appid -branch $steam_branch $steam_depot -os $platform -dir $platform_dir -filelist $references_file" -NoNewWindow -Wait
171171
} catch {
172172
Write-Host "Error: Could not start or complete getting dependencies"
173173
Write-Host $_.Exception | Format-List -Force

0 commit comments

Comments
 (0)